<aqd>
how does jruby handle string internally, since java string is immutable/shared and ruby string is not? copy-on-write? but is there no method to reference a part of string (not copy like slice)?
<aqd>
or it's just bytes internally and conversion happens every time from jruby to java and vice versa?
<kares[m]>
aqd: second option is correct
<kares[m]>
org.jruby.RubyString has a ByteList container (stores a byte[])
<kares[m]>
but some ruby strings might end up being shared under the hood e.g. if you take a sub-string
<aqd>
OH! is there an optimization/performance guide for jruby apps, things to avoid etc?
<headius[m]>
There's a few good articles on the wiki for sure
<headius[m]>
Could be better
jrafanie has joined #jruby
lucasb has joined #jruby
drbobbeaty has quit [Ping timeout: 255 seconds]
subbu|away is now known as subbu
olleolleolle[m] has joined #jruby
<aqd>
thanks! :)
rusk has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
claudiuinberlin has joined #jruby
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #jruby
subbu is now known as subbu|away
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #jruby
subbu|away is now known as subbu
claudiuinberlin has quit [Ping timeout: 258 seconds]