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. Web Development
  3. ASP.NET
  4. HTTPModule and a Word Corpus

HTTPModule and a Word Corpus

Scheduled Pinned Locked Moved ASP.NET
helpsysadminwindows-adminperformancequestion
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.
  • B Offline
    B Offline
    brunoconde
    wrote on last edited by
    #1

    I'm doing a HTTPModule to summarize the text within web pages in my web server. The summarization process is with me but i need a big corpus of words to help on summarization. My problem is : Where do i put this corpus in memory so it can be acessed quickly in runtime ???? Now i have a static variable that stay in memory with the corpus and the next time a page loads it has already the static corpus in memory. I have this static variable when i call HTTPModule. I still have the problem of loading the corpus in the first time that someone loads the page... I takes a while reading it from a file. Is there any way to call my HTTPModule when the IIS starts or something like that??? Do you have any other ideas that can help me??? Where do i put the corpus in memory??? A Windows Service Works??? Can i call a Windows Service that has the corpus in memory and be fast enougth??? Thank you very much !!! :) Sorry for my English...:( Bruno Conde. pharaoh

    M 1 Reply Last reply
    0
    • B brunoconde

      I'm doing a HTTPModule to summarize the text within web pages in my web server. The summarization process is with me but i need a big corpus of words to help on summarization. My problem is : Where do i put this corpus in memory so it can be acessed quickly in runtime ???? Now i have a static variable that stay in memory with the corpus and the next time a page loads it has already the static corpus in memory. I have this static variable when i call HTTPModule. I still have the problem of loading the corpus in the first time that someone loads the page... I takes a while reading it from a file. Is there any way to call my HTTPModule when the IIS starts or something like that??? Do you have any other ideas that can help me??? Where do i put the corpus in memory??? A Windows Service Works??? Can i call a Windows Service that has the corpus in memory and be fast enougth??? Thank you very much !!! :) Sorry for my English...:( Bruno Conde. pharaoh

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You can initialize the value for the static variable when the ASP.NET application starts using the Application_Start event in the Global.asax[^]. You then can use the variable for subsequent requests without recreating the variable.

      B 1 Reply Last reply
      0
      • M minhpc_bk

        You can initialize the value for the static variable when the ASP.NET application starts using the Application_Start event in the Global.asax[^]. You then can use the variable for subsequent requests without recreating the variable.

        B Offline
        B Offline
        brunoconde
        wrote on last edited by
        #3

        Yes, thats true but this is what i'm doing now. When my ASP.NET application starts i load the corpus... The problem is when the first incomming HTTP request is processed that is when corpus is load. This is very slow for the first user to see my website. I want something like when the computer loads, at startup, the aspnet_wp.exe (Worker Process) then i load the corpus... You dont know if that can be done in machine.config in ASP.NET configs?? Thanks !! Bruno Conde. pharaoh

        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