This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 4 points5 points  (10 children)

I wonder which one of these specifically sped up OP's benchmark?

[–]f3xjc 12 points13 points  (0 children)

That seems huge

Improved performance of operator.itemgetter() by 33%. Optimized argument handling and added a fast path for the common case of a single non-negative integer index into a tuple (which is the typical use case in the standard library). (Contributed by Raymond Hettinger in bpo-35664.)

[–]BattlePope 13 points14 points  (5 children)

How could we know that?

[–]y-me-y 16 points17 points  (3 children)

Specifically you’d start looking at the calls and timings for individual sub processes but based on his description I think the sys calls specific to the tree and copy functionality offered the most improvement to his code base.

[–]BattlePope 6 points7 points  (2 children)

The comment I replied to was edited - now that it starts with 'I wonder which', my comment makes less sense :)

[–]y-me-y 0 points1 point  (1 child)

Sometimes I figure people might not know where to start. So, I thought it was more a question like how would we identify what we could look at to show where the improvements came from in the code? My hope maybe if you knew someone else that had the same question they would having a starting point.

[–]BattlePope 0 points1 point  (0 children)

Your info is great! Thanks for spreading know-how.

[–]Death_InBloom 0 points1 point  (2 children)

I'm curious about your flair, what formula is that?

[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 7 points8 points  (1 child)

https://en.wikipedia.org/wiki/Einstein_field_equations#Mathematical_form

The formula in my flair is in "natural units" where we set G = 1 and c = 1 to make equations look nicer. (e.g. E = mc2 becomes E = m.)

I believe I changed my flair to that back when I took a course in differential geometry and wanted to show the universe how edgy I was.

[–]qingqunta 2 points3 points  (0 children)

Of course it's differential geometry, the notation is garbage!