• 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: July 30th, 2023

help-circle
  • TLDR: 3.11 is twice as fast as 3.10 at doing global name lookups, so an old speedup hack of aliasing a global function locally isn’t needed.

    For example, when calling len() in a loop, going l=len, and calling l() in the loop was faster in 3.10. In 3.11, moreso in 3.13, it’s almost a wash.

    However, the author says this:

    Accessing functions through a module [e.g. math.sin()] or a deep attribute chain can still carry overhead. Creating a local alias or using “from module import name” continues to be effective in those situations.

    But when I look at the numbers, I would say 3.13 is pretty close to making it an unnecessary optimization in general. A little subjective on how you interpret the numbers.

    Great info, but this was like trying to use a recipe and reading the author’s life story to get there.





  • You’re basically just proving my point. The first half is “irrelevant”, as you said, or “unrelated”, as I said. You’re filling in gaps from the first half to the second half.

    The post goes (paraphrased): It seems like an oversight to not have this feature of having individuals in multiple households. It got me thinking. Companies can choose not to hire you if your parents weren’t married.

    You’ve filled in the “it got me thinking” with “…they encountered this issue with a minor thing, started reading up on it online, and when digging into that kind of stuff ended up reading on what the legal situation is…”

    That’s exactly what I said is the mental gymnastics in response to OP’s question, and you’re filing it in like they actually explained it.







  • Yes, but I’m saying the algorithm for layoffs factors in “performance”, which can be factored from past bonus allocations.

    The algorithm isn’t going to lay off 150’s, but might preferentially select 100’s.

    I don’t have inside info, I’m just making assumptions that the data has to come from somewhere.



  • JohnnyCanuck@lemmy.catoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    31
    ·
    edit-2
    3 months ago

    Does this mean the other products they ship aren’t hit with tariffs? Are they somehow wholly made in the US vs the ones that were dropped?

    Edit: found my own answer:

    “We priced our laptops when tariffs on imports from Taiwan were 0%. At a 10% tariff, we would have to sell the lowest-end SKUs at a loss.”