caching

Performance of memory operations on iPhone

Here's the code that I use to create a differently ordered array: const unsigned int height = 1536; const unsigned int width = 2048; uint32_t* buffer1 = (uint32_t*)malloc(width * height * BPP); uint32_t* buffer2 = (uint32_t*)malloc(width * height * BPP); int i = 0; for (int x = 0; x < width; x++) for (int y = 0; y < height; y++) ...

Is it possible to clear my Visual Studio cache directly from visual studio?

I know how to clear my cache by deleting some file in a folder on my Windows machine. I want to know if there is an easier way, like by clearing it directly from visual studio? ...

Does accessing a single struct member pull the entire struct into the Cache?

I've been reading Ulrich Drepper's, "What every programmer should know about memory" and in section 3.3.2 Measurements of Cache Effects ( halfway down the page ) it gives me the impression that accessing any member of a struct causes the whole struct to get pulled into the CPU cache. Is this correct? If so, how does the hardware know a...

asp.net - deleting cache object at session end

I have a wrapper class for Caching (CachingBL) where I store users that are currently signed in (some of their session info). In CachingBL wrapper there is actually a dictionary of users, and I am putting that dictionary in cache like this: HttpContext.Current.Cache.Insert(...): At the session end I would need to access to the cache l...

Update a single object across multiple process in java

A couple of Relational DB tables are managed by a single object cache that resides in a process. When the cache is committed the tables are updated. The DB relational tables are updated by regular SQL queries and not anything more fancier like hibernate. Eventually, other processes got into the business of modifying this object without ...

Rails Caches_Page being misplaced due to namespacing

I have a controller within a namespace and would like to cache it's Index. I am successfully caching pages that are not under a namespace, and successfully caching fragments as well. When I visit http//.../house/kitchen it successfully creates /public/house/kitchen.html. However it never finds it, so it is always writing over the cache...

android image cache

how to cache images after they are downloaded from web ...

Same ASP.Net application - Multiple IIS Sites

Hi, A quick ASP.Net performance question... I have an ASP.Net 3.5 SP1 Application that I want to run on IIS 6. For SSL certificate reasons I need to run it on separate sites in IIS. It's a CMS, and some clients will need the add their own SSL certs. 1) Can I run the same set of ASP.Net files on the disk on multiple sites in IIS or do ...

Persist Local Configuration Data in SharePoint

Hi, I have a piece of data, a simple string containing the server name that the SharePoint solution is deployed to, that I retrieve from a configuration store in a helper method in a common DLL used throughout my solution. This helper method is used throughout my custom pages and web parts, to build a number of URLs, etc. I would li...

ETags, IIS7, Kernel Cache Policy (enableKernelCache)

Two-part question (parts are closely related): with the default OOTB ETag policy that IIS7 employs, why don't we see the If-None-Match/304 interaction as we navigate through pages? The headers returned for an empty-cache request, for instance, are: Content-Type image/png Last-Modified Thu, 03 Dec 2009 15:51:56 GMT Accept-Ranges ...

are you sure that ie6 caches images locally?

i have a asp.net-mvc site and i have the same image referenced on the site about 1000 times. In all other browsers (ie7+, ff, etc) the pages loads in less than a second. in IE6, it says . . (1000 items remaining. . ) (999 items remaining. . ) (998 items remaining. . ) (997 items remaining. . ) etc . . and linearly does a single coun...

How to control cache in JSP page?

I created a Servlet filter with the following code in doFilter: HttpServletResponse httpResponse = (HttpServletResponse)response; httpResponse.setHeader("Cache-Control","no-cache"); httpResponse.setHeader("Pragma","no-cache"); httpResponse.setDateHeader("Expires", 0); chain.doFilter(request, response); I want to make sure that noth...

Building a weakref cache in python

Hi everyone, I'm currently coding a project in python where I need a sort of cache of generic objects, I have settled on using WeakValueDictionaries for this. These generic objects are often referenced by many other non-generic objects. My main problem though is that I can't seem to wrap my head around a way of making these WeakValueDic...

caching per request in ASP.NET?

I'm using both IBatis.NET and Spring.NET on a project at work and I'd like to figure out if I can leverage both/either frameworks to achieve "per-request caching" on all calls into my DAL layer. In other words, every time an HTTP request is served by ASP.NET, I would like first call into a DAL method to hit the remote DB, but all calls ...

Programmatically Refresh DNS resolution (avoid cache) (c#)

Hi all, Is there a way to programmatically remove an address from windows' dns cache, or to re-resolve it? I'm using c#, but native code would be just fine (however, playing with the registry would not be). I'm writing a little application that measures the amount of time it takes to resolve an address and would like to avoid caching i...

Big-O and Cache Aware Data Structures & Algorithms

Is there someplace where I can get a Big-O style analysis / comparison of traditional data structures such as linked lists, various trees, hashes, etc vs. cache aware data structures such as Judy trees and others? ...

Caching strategy for merged MO files, which become arrays?

To clarify: I'm not using the gettext php module/extension, reason being because I have to deal with servers that don't have gettext included, I'm aware of php-gettext but that just complicates things in that I have to use multiple libraries. Further more I don't want to depend on the user having the necessary locales installed, and so...

how do i load the swfs through http so that the client brower can cache them and communicate with the server-side over https ?

The client-side application is a Flex application and communicate with server-side java application using blazeds.As you know,most browsers don't cache SWFs loaded over https,but i want load the swfs through http so that the client brower can cache them and communicate with the server-side over https ? How can i achieve that ? Help me pl...

best way for building a disconected-ready application in silverlight

Hello, I would like to make a SL app that could save certain data in local and access it if it is disconnected. I think that I could expose the entities in the services (no dtos), and saving it in the isolated storage. WCF ria services for the services, but what about the SL app? Which is the best way for having a "local disconnected ca...

Low MySQL Table Cache Hit Rate

I've been working on optimizing my site and databases, and I have been using mysqltuner.pl to help with this. I've gotten just about everything correct, except for the table cache hit rate, no matter how high I raise it in my.cnf, I am still hitting about 0% (284 open / 79k opened). My problem is that I don't really understand exactly ...