Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP array registry would be more efficient #98

Closed
Bilge opened this issue Feb 11, 2020 · 4 comments
Closed

PHP array registry would be more efficient #98

Bilge opened this issue Feb 11, 2020 · 4 comments

Comments

@Bilge
Copy link

Bilge commented Feb 11, 2020

The IBAN registry is currently stored in a text file which is parsed each time it is loaded. This has a significant overhead compared with array config. The advantages of using an array:

  • No need to parse anything. All line and pipe-separator parsing code can be deleted.
  • Registry can be cached by PHP automatically using opcache.
  • Loads faster.
  • More maintainable (no more very long lines).
@globalcitizen
Copy link
Owner

I agree, it could be enhanced performance wise.

However, people depend on the current format.

If you submit a PR that caches the current format in an intermediate format without introducing dependencies I would consider it.

@Bilge
Copy link
Author

Bilge commented Feb 13, 2020 via email

@globalcitizen
Copy link
Owner

90% of the life of software is maintenance. As a maintainer, it is my job to care about such things to save other people hassle.

@Bilge
Copy link
Author

Bilge commented Feb 13, 2020

I don't think we're even talking about the same thing at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants