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

Embed structure members directly, rather than allocated separately. #40

Open
rtheunissen opened this issue Aug 30, 2016 · 0 comments
Open
Assignees
Milestone

Comments

@rtheunissen
Copy link
Member

This reduces the number of allocations and indirection.

Instead of

typedef struct _php_ds_map_t {
    zend_object  std;
    ds_map_t    *map;
} php_ds_map_t;

use

typedef struct _php_ds_map_t {
    zend_object  std;
    ds_map_t     map;
} php_ds_map_t;
@rtheunissen rtheunissen added this to the 2.0.0 milestone Aug 30, 2016
@rtheunissen rtheunissen self-assigned this Aug 30, 2016
@rtheunissen rtheunissen mentioned this issue Jul 19, 2017
3 tasks
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

1 participant