• websebdev Profile Picture

    Sebastien Auriault @websebdev

    3 years ago

    💎Ruby tip💎 Did you know that concatenating strings together ("a" << "b") is a lot more performant than adding them to each other ("a" + "b") or using interpolation ("#{a}#{b}")? Especially with the recent optimizations from @_byroot and others. #ruby #rails #rubyonrails

    5 12 92 0 8
  • ChrisGSeaton Profile Picture

    Chris Seaton @ChrisGSeaton

    3 years ago

    @websebdev @_byroot Could all be O(1) if we added ropes from TruffleRuby to MRI,

    0 0 2 0 0
  • strzibnyj Profile Picture

    Josef Strzibny @strzibnyj

    3 years ago

    @websebdev @_byroot Good you rewrote the tweet, wanted to comment what you actually mean. 👍

    1 0 0 0 0
  • bsilva96 Profile Picture

    Benjamín Silva @bsilva96

    3 years ago

    @websebdev @_byroot Mmm I would advise something different! You better freeze all your string literals to save tons of memory. (by adding # frozen_string_literal: true at the beginning of every ruby file) And doing so, will make your strings immutable, so you can't do 'a' << 'b' anymore.

    1 0 3 0 0
  • aristotelesbrc Profile Picture

    Aristóteles Coutinho 🚀 @aristotelesbrc

    3 years ago

    @websebdev @_byroot a >> b

    0 0 0 0 0
  • matthewkrom Profile Picture

    Matthew Krom @matthewkrom

    3 years ago

    @websebdev @_byroot How about joining an array into a string? (May check that myself)

    1 0 0 0 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer