Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292853

Adopt php-ds for data structures

$
0
0

Problem/Motivation

With php-ds getting traction, both as native extension and polyfill, there is no performance excuse for sticking to arrays of doom. Moving away from php's arrays will also remove attack vectors, thus be good for security (remember Drupageddon?).

Efficient data structures for PHP 7 – Rudi Theunissen – Medium

php-ds/extension: An extension providing efficient data structures for PHP 7

PHP: Data Structures - Manual

Proposed resolution

Explore usage, use it whereever fits.

Remaining tasks

TBD

User interface changes

None

API changes

Some.

Data model changes

Arrays become other structures.


Viewing all articles
Browse latest Browse all 292853

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>