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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -