Timeline for Accessing deep properties and methods of an object with using a path
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 27, 2017 at 19:18 | comment | added | MartinWebb | Yes i agree a long hand for each is faster. | |
Dec 27, 2017 at 19:00 | comment | added | Igor Soloydenko |
@MartinWebb it runs slower because of the .forEach it's definitely not as performant compared to a for loop.
|
|
Dec 27, 2017 at 18:50 | comment | added | MartinWebb | Yes and you are right. I have modified the tags so it is clear. Sorry for any misunderstanding and thank you again for correcting this. | |
Dec 27, 2017 at 18:49 | comment | added | Igor Soloydenko | You're right, I missed that part. My bad. Anyway, at least I pointed out the correctness issue which is more important. Reversed my vote... | |
Dec 27, 2017 at 18:44 | comment | added | MartinWebb | Not in the title i agree but it is mentioned: "It is used a lot in my application and I need to speed it up" | |
Dec 27, 2017 at 18:33 | comment | added | MartinWebb | Runs slower, it seems the original code is fast, though maybe not politically correct for design. Thanks for pointing out the errors will look into this, and re-test. | |
Dec 27, 2017 at 18:08 | history | answered | Igor Soloydenko | CC BY-SA 3.0 |