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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:21:58+00:00 2026-05-16T20:21:58+00:00

This sounds like a simple question, but I don’t know how to search for

  • 0

This sounds like a simple question, but I don’t know how to search for its answer.

I have a trie implementation in C# that will store about 80K words from a dictionary file. It takes quite a while to load all these words (more than 5 mins). I was wondering, what is the best way to “persist” those data so I don’t have to reload all words every time I start the application?

Thanks.

  • 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-16T20:21:59+00:00Added an answer on May 16, 2026 at 8:21 pm

    Like all other performance issues, the ideal solution will follow from profiling your current solution and other candidate solutions that you come up with. Where’s the bottleneck? The I/O? Lexing the text? Forming the links in the trie? Will be hard to make a concrete suggestion without knowing your performance goals, the nature of the trie-usage and bottlenecks currently present.

    Issues to consider:

    1. Storage format: Text? Binary?
    2. Persisted data: The entire structure of the trie (e.g. as XML) or just a list of words, relying on run-time code to push them into the right location in the data-structure? What’s the markup to data ratio? How heavy is it to parse?
    3. Storage location: DB / flat-file / …?
    4. Incremental loading: Possible?

    One possible strategy: Create and persist a ‘most common words’ dictionary with the 1,000 (or so) of the most frequently-used words. Load these words into the trie on start-up, and spawn the loading of the full-dictionary on another thread; incrementally adding to the created trie as new words are read.

    • Pros: User will see faster start-up time.
    • Cons: Might require cross-thread
      synchronization, user will see an
      incomplete trie until loading is
      fully complete. This may or may not be a showstopper depending on what the trie is being used for.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this sounds like a really obvious question, but it's proving harder to
Sounds like a weird question, but say I have something like this: $.post( /myajax.php,
This sounds like a really simple question, but I am new to PHP. If
Okay, Now admittedly this sounds like a silly question; But, I actually have a
Unfortunately, the answer to this question isn't quite as simple as it sounds... but
This sounds like a simple question but I can't find good information. I'm writing
This sounds like a look-up-in-the-manual question to me, but I can't find it. Suppose
Sorry if this sounds like a really stupid question, but I need to make
I'm sure this sounds like a n00b question, but how do I add sub
Hi this question or problem i have its very hard i have search and

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.