Current location: Hot Scripts Forums » Programming Languages » PHP » ARRAY_SLICE is too time-consuming


ARRAY_SLICE is too time-consuming

Reply
  #1 (permalink)  
Old 10-02-03, 11:31 AM
770 770 is offline
New Member
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question ARRAY_SLICE is too time-consuming

I used "foreach" to traverse a large 2d array.
Then I needed to "array_slice" out new arrays when requirements changed.
This kept my foreach code intact.
The thing is array_slice takes an immense amount of time, especially when the slice is deeper into the original array.

How can I traverse a section of an array
simply by moving to the new start key, then traverse from there
till the new end key - without "array_slicing".

I'd appreciate your help and time - Meir
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Experince by time ? NeverMind Polls 15 06-26-10 12:38 AM
time Alii Script Requests 2 03-20-04 11:31 AM
I am not getting time even i set date propery to date/time skchakri ASP 3 09-30-03 04:47 PM
run 2 queries at the same time superman PHP 3 07-15-03 01:56 AM
[RESOLVED]Forum time is wrong by 5 hours jrobbio HotScripts Site Bug Reports 1 06-07-03 10:46 PM


All times are GMT -5. The time now is 06:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.