Skip to content

Could not using args for getStyle() improve performance? #13

@Glidias

Description

@Glidias

http://jacksondunstan.com/articles/447

Albeit codewise it might be more inconvenient to pass an Array, what do you think? This might be useful when passing multiple arguments without having to rely on "function.apply()", which is also slower. Of course, duplicating 2 seperate functions (one for a single string argument and another for a passed array) can be pretty cool...though as always, any inlining/code-duplication makes your code uglier. For certain cases that relies on many heavy-duty queries, monkey-patching the getStyle(...args) argument to a single Array/Vector parameter can be done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions