Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. logically viewing separate non-contiguous files as one file

logically viewing separate non-contiguous files as one file

Scheduled Pinned Locked Moved IT & Infrastructure
helpperformancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    davidko
    wrote on last edited by
    #1

    We are developing software that requires very large amounts of data that really should be separated as files. However, because of our clientelle, we need to keep the information as one big file. The problem with this is that many times, data found in the middle or beginning of the file needs to be added to, which means that all the data that goes after the added data must be copied to a temporary file, and then recopied to the original file after the data has been added. This is a very slow and error-prone process, but we couldn't come up with a better method. I know you can zip the file, which is essentially like a directory that stores separate files, but i believe it still stores the files contiguously in memory. Is there a way to keep multiple files completely non-continguous (I should say, having the ability to append to each file) and yet be viewed as one file? Thank you

    N 1 Reply Last reply
    0
    • D davidko

      We are developing software that requires very large amounts of data that really should be separated as files. However, because of our clientelle, we need to keep the information as one big file. The problem with this is that many times, data found in the middle or beginning of the file needs to be added to, which means that all the data that goes after the added data must be copied to a temporary file, and then recopied to the original file after the data has been added. This is a very slow and error-prone process, but we couldn't come up with a better method. I know you can zip the file, which is essentially like a directory that stores separate files, but i believe it still stores the files contiguously in memory. Is there a way to keep multiple files completely non-continguous (I should say, having the ability to append to each file) and yet be viewed as one file? Thank you

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      I would say you need to look into using XML for this project. You can insert and retrieve nodes any place within the document without the temp file/copy/write procedure.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups