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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:43:05+00:00 2026-05-20T10:43:05+00:00

Hey all, I am writing a logviewer application. These logs are between 100-200 megs

  • 0

Hey all, I am writing a logviewer application. These logs are between 100-200 megs (almost never larger than that) of pure text.

My application will be not only used to make the reading of said logs easier, but to offer tons of options on parsing (filters/searches, ect). Anywho, the files are on a network drive so I currently use FileStream and BufferedStream to read them in, which depending on the file takes about 15 seconds.

My first question is there a faster way to do this? ReadLine made parsing easier, but clocked in at about 25 seconds.

Secondly, if the user is just playing around with one file alot (using different combos of filters and searches, whats the best way to deal with it in the applications memory? I mean I could just re-read it each time but thats silly. I tried storing the whole file in a global StringBuilder which seemed to work, but I couldnt pass it on to other functions (OutOfMemoryException).

Whats the best way to deal with what ends up being a gigantic string? (Keep in mind no manipulations are being made, just pure reads/filter out what the user dosn’t want to see.

Thanks guys!

  • 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-20T10:43:05+00:00Added an answer on May 20, 2026 at 10:43 am

    Like Hans suggests, read the file in chunks and do it on demand when the user needs to move about the file. You can also try being smart and keeping nearby chunks in memory and discard distant chunks.

    If you’re doing this for fun, you might want to build a little in memory index as you process the file. Meaning for each line you process, keep some metadata about the line number, where in the file it starts, and what kind of line it is. That might make your options easier to work with.

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

Sidebar

Related Questions

Hey all, I'm writing an application which records microphone input to a WAV file.
Hey, I'm writing a personal bookmarking application, and looking for a way to keep
Hey all, I'm writing an app to handle registration for athletic events. Some of
Hey all, I'm writing a program that takes in a string representation of a
Hey, I am writing a quiz application with Java Servlets. My quiz data is
Hey all, I'm writing a C program, and I want to have an array
Hey all! I'm fairly new to objective-c so I have never had to tackle
Hey all, I'm writing a little 3D engine for android to better learn the
Hey all i am in need of some help getting my code working correctly
Hey all I'm trying to make a 3d game in with 2d sprite characters.

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.