PHP Classes

PHP Array Map class: Manipulate arrays in a memory efficient way

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 403 All time: 6,547 This week: 206Up
Version License PHP version Categories
array-map 0.2GNU General Publi...5.2PHP 5, Data types
Description 

Author

This package can manipulate arrays in a memory efficient way.

It provides classes implement the interfaces so its objects can be manipulate like regular array values, but internally elements are stored in memory efficient ways.

Two special array element storage modes use SplFixedArray to optimize arrays using a pre-defined size, and in the binary mode it uses PHP memory stream wrapper to store array elements as compact memory entries.

Innovation Award
PHP Programming Innovation award nominee
August 2013
Number 6


Prize: One year Codenvy Developer hosted cloud IDE premium plan
Arrays are often used to manipulate large sets of information.

When the data sets are too large, they may take too much memory and slow down array manipulation operations.

This class implements a solution that is more efficient than using the regular PHP arrays. It may use either fixed sized arrays or the memory stream wrapper to store a more compact version of the array elements in memory.

Manuel Lemos
Picture of Andrew Shcherbakov
  Performance   Level  
Name: Andrew Shcherbakov <contact>
Classes: 1 package by
Country: Ukraine Ukraine
Age: 43
All time rank: 354557 in Ukraine Ukraine
Week rank: 214 Up2 in Ukraine Ukraine Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (5)  
File Role Description
Files folder imageclasses (2 files)
Plain text file b002648.txt Doc. cubic prime numbers
Plain text file COPYING.txt Doc. gnu gpl 3.0
Plain text file test.php Example Example script

  Files folder image Files (5)  /  classes  
File Role Description
  Plain text file arraymap.php Class Class source
  Plain text file hashmap.php Class new hash class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:403
This week:0
All time:6,547
This week:206Up