jQuery performance – part 1 [Selectors]

Selecting element by id & class attribute

Use id attribute as much as possible in your project!

If you are writing a jQuery plugin or you want better performance of your code you will find the post as interesting.

The best way to select an element from theĀ DOM is using Continue reading

Advertisements

How to represent 2D array into 1D array ?!?

2D array

2D array

This is very interesting question “How to represents 2D array into 1D array?”. In this post I’ll show you two ways to do it:

  1. Row-Major order
  2. Column-Major order (vectorization)

Continue reading