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

  • Home
  • SEARCH
  • 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 7854557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:05:57+00:00 2026-06-02T20:05:57+00:00

As we know the integer storage length is 4 bytes and character storage is

  • 0

As we know the integer storage length is 4 bytes and character storage is 1 byte.Here comes my problem,I have a huge data and I need to write them into a file.

For eg. my data is like

    Integers - 123456789 (of length 9) (Total 9! factorial records)
    Character - abcdefghi (of length 9) (Total 9! factorial records)

Which one will take less processing time? Any thoughts…

  • 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-06-02T20:06:00+00:00Added an answer on June 2, 2026 at 8:06 pm

    If your integers are stored in individual 32-bit ints and you save them in binary, you have 4 bytes per integer and no conversion overhead.
    If your character strings are stored in arrays of 9 chars and you save them as-is, you have 9 bytes per string and no conversion overhead.
    In this case strings will take more I/O time than integers.

    If you convert your integers into readable 9-char strings and save them the same way as the other strings, the I/O time will be the same, but there will be extra processing time for the integers required for their conversion into text.

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

Sidebar

Related Questions

I have ConcurrentMap<Integer, MyObj> in my program. Can I modify MyObj if I know
I have data stored in SQL as an integer between 0 and 63, IE
I have a large hexidecimal (16 byte, 32 hex digits) data item that always
I have a CHANGES table with fields VALUE(integer) and CREATED_AT(timestamp). I want to know
I need to validate an integer to know if is a valid enum value.
I know what (for example) a DWORD is, it's a four-byte unsigned long integer.
I'm validating some properties and I need to know if long or integer values
How can I convert my Map<Integer, String > to byte[] , and then write
I know how to convert a character array containing numbers to an integer using
I have an application that will need extremely little persistent storage. Realistically, we're talking

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.