Questions tagged [prefetch]

A technique to minimize time spent waiting for some needed data to arrive, effectively hiding the latency of the fetch or part of it. Examples include instruction and data prefetching in microprocessors, and link prefetching in html browsers.

Prefetching is a technique to minimize time spent waiting for some needed data to arrive, either externally by the user or internally by the system. If the target of the request (whether a memory address, or a web link) can be predicted well enough in advance, a prefetch dispatched early will have time to fetch the data before the actual demand, thereby hiding the latency of the demand itself when it arrives. As the prefetch may arrive even earlier than needed, prefetching is often associated with caching mechanisms. Examples include instruction and data prefetching in microprocessors (both software based and hardware prefeching), link prefetching in html browsers, and database prefetching mechanisms.

522 questions
0
votes
1 answer

Improving CUDA SDK matrixMul by the prefetching intrinsic

Here is the part of CUDA SDK (2.3) matrixMultiply kernel: for (int a = aBegin, b = bBegin; a <= aEnd; a += aStep, b += bStep) { __shared__ float As[BLOCK_SIZE][BLOCK_SIZE]; __shared__ float Bs[BLOCK_SIZE][BLOCK_SIZE]; …
lashgar
  • 5,184
  • 3
  • 37
  • 45
0
votes
0 answers

Will HTML Prefetching Also Start Downloading Streaming Content?

Prefetching is one of the new standards that make up HTML5. You can add it to tags like this: My questions: What happens if you try and prefetch a page with streaming data, like Youtube? Will the video…
Mikle
  • 1,842
  • 4
  • 20
  • 32
0
votes
1 answer

Android prefetch Webview

I'm creating a "Daily ...." application for Android. (Let's say "Daily flowers") The idea is: you get a notification each day and when you click it, it will show you a picture of a flower + some text. I'd like to distribute this from a website. I…
Jouke Waleson
  • 517
  • 1
  • 3
  • 14
0
votes
0 answers

Applying Pre-fetching in this C++ code for finding maximum value index

The following code finds min/max and its location in a given array: //Finding the array index// #include "stdafx.h" #include #include #include #include using namespace std; int main () { int A[4] =…
gpuguy
  • 4,607
  • 17
  • 67
  • 125
0
votes
1 answer

Django prefetch_related on many to many field always yields empty array

I'm having trouble with Django's prefetch_related. Here are my models. class Terrain(models.Model): name = models.CharField(max_length=255) class Route(models.Model): name = models.CharField(max_length=255) terrains =…
Dustin
  • 2,091
  • 3
  • 15
  • 13
0
votes
1 answer

Fetching multiple nested collections eagerly in separate SELECTs using NHibernate

I have the following database structure, which I need to traverse entirely for a report. Product -> ProductVariation -> ProductMedaItem Product -> CategoryLinks -> Category I have a query on the Products table, and want to prefetch the above data,…
Karl Cassar
  • 6,043
  • 10
  • 47
  • 84
0
votes
1 answer

Incorrectly calculating dialog box position because of dynamic image loading?

I'm working on a gallery type application - one template puts together a popup dialog for a larger view of thumbnail images when clicked. The server path to the image is included as a template variable. Gallery.Templates.Popup = "\
rakitin
  • 1,943
  • 6
  • 25
  • 51
-1
votes
1 answer

__builtin_prefetch making it faster in my code. What I need to do in the code

in this program #include #include int main() { uint16_t *data=(uint16_t[]){1,2,3,4,5,6,7,8,9,10}; int mlen=10; uint16_t partial=0; __builtin_prefetch(data + 8); while (mlen >0) { partial…
user786
  • 3,902
  • 4
  • 40
  • 72
-1
votes
1 answer

how to refetch data that has already been fetched

My tableView uses prefetching to cache images and works perfectly when I start the app but once I close out of the app, sending it to the background (not fully shutting it down) and click the app again, the cached images are gone but because the…
Dane
  • 45
  • 6
-1
votes
1 answer

Web Performance - Resources Hints - is there any negative impact to not use the protocol inside the href of a preconnect/dns-prefetch?

I am trying to use, as correctly as possible, browser resources hints (https://w3c.github.io/resource-hints/). I went on a few large websites and most of them specify the http/https protocol such as like this:
Mathieu
  • 4,587
  • 11
  • 57
  • 112
-2
votes
1 answer

Django: prefetch related: for loop: based on how we call for loop, the number of sql call varies

In django i am trying to understand prefetch: I have two for loop scenarios after prefetch symbollist = SymbolList.objects.prefetch_related('some_related_name')[0:10] for i in range(0,10): print(symbollist[i].some_related_name) Now it calls sql…
Santhosh
  • 9,965
  • 20
  • 103
  • 243
-2
votes
2 answers

How to delete Prefetch folder in vb.net?

How to delete Prefetch folder in vb.net? I tryed : kill("C:\windows\prefetch.dll) but it return a error "Unhandled Exeption"
Alondra
  • 27
  • 5
1 2 3
34
35