diff options
| author | Josh Nichols <josh.nichols@gusto.com> | 2023-08-13 12:55:29 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-08-16 01:39:08 +0000 |
| commit | 0300ea5a6c8a7a49feed73318fc8a991aa89fcfc (patch) | |
| tree | f6f524a9e485d9c76d0f86d0fcb11207e76f0d2f /darray.h | |
| parent | 8d985b1855d5d5dca88edce32625440a6c123a16 (diff) | |
[ruby/net-http] Improve performance of HTTPHeader#content_type
In the existing implementation, `main_type` and `sub_type` would end up
being called multiple times potentially.
Instead of doing that, save the result so it can be re-used.
https://github.com/ruby/net-http/commit/179976f7ea
Diffstat (limited to 'darray.h')
0 files changed, 0 insertions, 0 deletions
