Javascript performance of indexing -


is following line considered unoptimal, considering being used in many places or inside of loop:

var age = myobject[index]["person"]["identity"]["bio"]["age"] 

even if hash lookup in javascript o(1) (i don't know sure), you'd still have overhead of lookup operations. so, yes, suboptimal big loop.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -