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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:00:54+00:00 2026-06-07T17:00:54+00:00

Long time watcher and this is my first post so please go easy on

  • 0

Long time watcher and this is my first post so please go easy on me. I’ve looked around but my query is quite specific and I can’t find it elsewhere.

I have an application which consists of 2 controls.

  • A control on the left contains a tree view which displays searches mapped from an XML file. Each Search has an associated GUID.
  • A control on the right displays a datagrid, the information of which I obtain from the tree view through a Dictionary (Guid<->Dataset).

When the user clicks on a node in the tree view, my application works out which GUID the search is linked with and presents the associated dataset which gets flattened and displays on the datagrid.

I save(Serialise) and load(Deserialise) the Dictionary when exiting/loading the application respectively.

I did some memory profiling recently and for larger searches the memory footprint of the Dictionary can be quite large (200mb) for the limited capacity of the user machines which I really need to sort out.

I was wondering if anyone had any idea how to achieve this.

I was thinking about splitting the Serialisable Dictionary into constituent Datasets and storing each one individually on the hard drive (maybe with the GUID as the filename). The saved Datasets would then be deserialised with each Node.Click event and displayed in the grid view. My worry about this is the potential pause in between each click event as it saves the old search and loads a new one.

  • 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-07T17:00:56+00:00Added an answer on June 7, 2026 at 5:00 pm

    Simple answer, toss the dictionary and the datasets into a Sqlite file. (or other db) It will be a little slower but I expect faster than any code you can hand code in a reasonable amount of time. If used correctly a db layer will do memory buffering and caching to make the ui more responsive.

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

Sidebar

Related Questions

long time lurker, first question! I am struggling to optimize this query, which selects
(Long time reader of SO, first time asking a q. I'm quite new to
long time listener first time caller... I have this function (I don;t recall where
Long time browser, first time asker... Maybe you can help. I've searched and searched,
Long-time listener, first-time caller. I'm relatively new to XPath and looked at several other
Long time lurcher, first time poster here. I've been grappling with this problem for
Long-time joelonsoftware follower, 1st-time stackoverflow poster. I want to know how safely I can
Long time reader, first time poster. Any help is greatly appreciated. I have crafted
long time reader first time user. I'm putting together my first RoR application and
Long time listener, first time caller. I'm a 6 month old dev from Code

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.