Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Сообщения за день
 

Вернуться   Форум Flasher.ru > Поиск по форуму

Показано с 1 по 2 из 2.
На поиск затрачено 0.00 сек.
Поиск: Сообщения от: jpauclair
Раздел: ActionScript 3.0 11.12.2009, 20:11
Ответов: 29
Просмотров: 2,474
Автор jpauclair
The post is not about if its faster to...

The post is not about if its faster to preallocate array or not.
It should be faster to preallocate but it's a VERY small difference.
The real difference is when you have an array starting at zero...
Раздел: ActionScript 3.0 11.12.2009, 18:12
Ответов: 29
Просмотров: 2,474
Автор jpauclair
Read the article correctly! In the code you...

Read the article correctly!
In the code you write, you start the loop at i++
and write the first element at index 1.
hence your using a HT.
convert your code to:
while ( i < loopCount )
{...
 
Показано с 1 по 2 из 2.

 
Быстрый переход

 


Часовой пояс GMT +4, время: 12:05.


Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.