Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make loading data on demand #92
I want to see code measuring timings as evidence this has any positive effect before merging.
Timings should preferably include:
Sorry but... when using .e.g iban_to_machine_format() it is NOT needed to load the registry.txt, but having the function available you have to include the whole php-iban.php (which auto-loads the registry.txt).
Our simple patch affects 3 (!) lines of codes without any negative impact (most of the functionality is already there, YOU did write it :-) ). Just prevent loading the registry.txt at including the lib, instead when using. Not less, not more.
To your question: It does not save on each function call, it saves when including the php-iban lib while not using it. Just mathematics!