[ruby-core:70024] [Ruby trunk - Feature #11371] [Open] [PATCH] parse.y (struct parser_params): pack to 4 cache lines on x86-64

From: normalperson@...
Date: 2015-07-18 07:17:45 UTC
List: ruby-core #70024
Issue #11371 has been reported by Eric Wong.

----------------------------------------
Feature #11371: [PATCH] parse.y (struct parser_params): pack to 4 cache lines on x86-64
https://bugs.ruby-lang.org/issues/11371

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
parse.y (struct parser_params): pack to four cache lines on x86-64

This reduces the struct from 256 (from 288) bytes on my x86-64
system, allowing the struct to fit cleanly into 4 cache lines
if a malloc implementation allows it.

Pretty minor, but it might make future improvements easier-to-spot.
Will commit in a few days/weeks


---Files--------------------------------
0001-parse.y-struct-parser_params-pack-to-four-cache-line.patch (4.96 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next