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. General Programming
  3. C#
  4. RAM disk

RAM disk

Scheduled Pinned Locked Moved C#
csharpcommcpperformancequestion
3 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.
  • G Offline
    G Offline
    Grimolfr
    wrote on last edited by
    #1

    I'm currently working on a project using a third-party tool. All of the data I'm working with is handled via MemoryStream for the most part, and in most cases need never be written to disk. (Completed document is streamed to the browser, then the stream discarded.) Unfortunately, the 3rd-party tool I'm using only operates on files (both input and output.) I'd like to avoid having temp files everywhere if at all possible. Is there any way through .Net that I can create an old-fashioned RAM disk to do this processing on? It'd be even better if there were a way to have a FAT record point to a memory buffer that already exists instead of having to actually duplicate the data on the RAM disk, but even that's preferable to actual disk I/O. Thanks for whatever pointers anyone can give me. (BTW, for those who're interested, or if it makes a difference, the 3rd-party tool I'm working with is GhostScript.)


    Grim

    (aka Toby)

    MCDBA, MCSD, MCP+SB

    Need a Second Life?[^]

    SELECT * FROM user WHERE clue IS NOT NULL GO

    (0 row(s) affected)

    B 1 Reply Last reply
    0
    • G Grimolfr

      I'm currently working on a project using a third-party tool. All of the data I'm working with is handled via MemoryStream for the most part, and in most cases need never be written to disk. (Completed document is streamed to the browser, then the stream discarded.) Unfortunately, the 3rd-party tool I'm using only operates on files (both input and output.) I'd like to avoid having temp files everywhere if at all possible. Is there any way through .Net that I can create an old-fashioned RAM disk to do this processing on? It'd be even better if there were a way to have a FAT record point to a memory buffer that already exists instead of having to actually duplicate the data on the RAM disk, but even that's preferable to actual disk I/O. Thanks for whatever pointers anyone can give me. (BTW, for those who're interested, or if it makes a difference, the 3rd-party tool I'm working with is GhostScript.)


      Grim

      (aka Toby)

      MCDBA, MCSD, MCP+SB

      Need a Second Life?[^]

      SELECT * FROM user WHERE clue IS NOT NULL GO

      (0 row(s) affected)

      B Offline
      B Offline
      benjymous
      wrote on last edited by
      #2

      Not the answer you're directly looking for, but GhostScript is open source, so one solution would be to hack into GS the ability to read your data directly from RAM -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!

      G 1 Reply Last reply
      0
      • B benjymous

        Not the answer you're directly looking for, but GhostScript is open source, so one solution would be to hack into GS the ability to read your data directly from RAM -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!

        G Offline
        G Offline
        Grimolfr
        wrote on last edited by
        #3

        True, but I'm on a short timeline, which is the main reason I'm using 3rd-party tools in the first place. We had found a few 3rd-party solutions for doing what we actually need from ghostscript, but they all have their own problems. In some cases, they can't even render the PDF properly. That's the only reason I'm even looking at anything as low-level as Ghostscript.


        Grim

        (aka Toby)

        MCDBA, MCSD, MCP+SB

        Need a Second Life?[^]

        SELECT * FROM user WHERE clue IS NOT NULL GO

        (0 row(s) affected)

        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