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 6528515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:32:30+00:00 2026-05-25T09:32:30+00:00

When processing a 3D model file with libraries like cstdio, wouldn’t it be faster

  • 0

When processing a 3D model file with libraries like cstdio, wouldn’t it be faster to load whole file to a new buffer with a file’s length size, and then process it instead of frequent using file data accessing functions ?

My question applies both to binary and text model formats, but especially to the second ones where reading is usually done with functions accessing file line by line (for example Wavefront .OBJ).

cons/pros ?
also, I’m aware of bigger memory complexity, any other negative aspects?

  • 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-25T09:32:31+00:00Added an answer on May 25, 2026 at 9:32 am

    One negative aspect would be that if this is single threaded the CPU isn’t doing anything while the entire file is being read into memory which could even extend loading times.

    However the speed gains or losses are probably negligible in any case.

    Again, not directly addressing the problem but: If processing time is a big issue you could write an application which processes the model and stores it in a format which could just be mmap ed or something into a vertex buffer of some sorts.

    Edit: I’m not too sure how good advice mmapping this sort of data is, can somebody comment on this?

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

Sidebar

Related Questions

I'm processing a file, line-by-line, and I'd like to do an inverse match. For
I'm trying to model a asynchronous job processing framework using MailboxProcessor. My requirements are
I'm processing a huge file with (GNU) awk , (other available tools are: Linux
How does the processing overhead of the length() function in REXX change with the
Here's the model file: class ProfileTag < ActiveRecord::Base def self.create_or_update(options = {}) id =
Rails 3 app with paperclip. Given a Paperclip File Model, how can you move
Does the recovery model of a database effect the size of the tempdb.mdf? We
Processing time doubles as Y goes to the right. Can anybody tell me why?
String processing in C# and VB.NET is easy for me, but understanding how to
After processing form from POST I should redirect, to prevent user from hitting back.

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.