Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 809645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:45:38+00:00 2026-05-15T00:45:38+00:00

Ruby looks a very cool language. I’ve started learning it for the past two

  • 0

Ruby looks a very cool language. I’ve started learning it for the past two three days. One thing that appeals me in Ruby is its simplicity. Very clean code is possible. However, the internal implementations of Ruby is not exposed to the outside world. I learnt that Ruby is written in various languages depending on the flavors.

The one thing that bugs me (since I come from a Java background) is the memory usage and speed due to its stronger level of Abstraction. I just want to hear what Ruby users have to say regarding this. By memory usage and speed, I mean in Java i will decide when to go for an ArrayList, when to go for a LinkedList, when to go for a Hash. I know their implementations completely, even if I dont, I can have a peek into them. But in Ruby, its not straightforward (I know it should be an efficient implementation). But, how will I be sure that I am not over-using things. For example what happens when I simply define an array. Is it going to be a typical bunch of consecutive memory locations or different implementation altogether?

Plus, Ruby written in various languages follows the similar algorithms implemented or it differs for languages.

Just curious…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:45:38+00:00Added an answer on May 15, 2026 at 12:45 am

    Ruby’s memory usage is definitely a pain point when it comes to deploying. Take for example a well-developed (in both meanings of the term: 1) developed using best practices and 2) extensive) Rails application would “gladly” take up more than 256mb on the system where it’s deployed. But you get all that pretty useful syntactic sugar with it. That’s the “good” to the “evil”.

    I wouldn’t be too concerned with how Ruby stores an Array object, as was your example. Even as an experienced Ruby developer, I don’t care how it’s stored because I am assuming that the language creators have known how to optimize the language and have done that well. But, every release is faster.

    There’s two places that come to mind for where you should be careful about memory usage in your application:

    • Reading large files
    • Creating lots of objects

    If you’re going to be reading a 160MB file into your Ruby program, that’s 160MB+ of memory that’s going to be taken.

    Then if you create too many objects, each object has its own memory allocation. Let’s say it’s 16kb per object. If you create a million objects, that’s 16,000,000kb, or 16GB.

    Just be careful!

    You may also be interested in this handy tool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 396k
  • Answers 396k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Did you look at the hibernate annotations documentation? https://docs.jboss.org/hibernate/stable/annotations/reference/en/html/xml-overriding.html It… May 15, 2026 at 2:56 am
  • Editorial Team
    Editorial Team added an answer This isn't a complete answer to your question, but you… May 15, 2026 at 2:56 am
  • Editorial Team
    Editorial Team added an answer There is a missing parenthesis. You want to call the… May 15, 2026 at 2:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.