(Not strictly programming, but a question that programmers need answered.)
I have a benchmark, X, which is made up of a lot of sub-benchmarks x1..xn. Its quite a noisy test, with the results being quite variable. To accurately benchmark, I must reduce that "variability", which requires that I first measure the variability.
I can easily...
It's in Java. Basically I have about 1,000,000 strings, for each request I have to check a String is belonged to the list or not.
I'm worried about the performance, so what's the best method? ArrayList? Hash? Thanks.
...
Hello everyone!
Reading http://stackoverflow.com/questions/408101/which-is-faster-byval-or-byref made me wonder whether the comments in there did apply to Strings in terms of performance. Since strings are copied before being passed, isn't it much more efficient (if the callee doesn't need a copy of string course) to pass strings ByRef?...
Most triple stores I read about are said to be scalable to around .5 billion triples.
I am interested to know if people think there is a theoretical reason to why they have to have an upper limit, and whether you know of any particular ways to make them more scalable.
I am curious to know if existing triple stores do things like this:
...
Hey,
I have an Array of MKAnnotation objects called arrAnnotations. I want to pick out one of the annotations with the same coordinate as the one stored in a CLLocation object called "newLocation". I'm trying to use an NSPredicate, but it doesn't work.
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(SELF.coordinate == %f)...
I have the following VB.NET code (but for each loops are in most languages, thus the language-agnostic tag):
Public Function VerifyServiceName(ByRef sMachineName As String, ByRef sServiceName As String) As Boolean
Dim asServices As System.ServiceProcess.ServiceController() = System.ServiceProcess.ServiceController.GetServices(sMa...
The usual way to read a file in C++ is this one:
std::ifstream file("file.txt", std::ios::binary | std::ios::ate);
std::vector<char> data(file.tellg());
file.seekg(0, std::ios::beg);
file.read(data.data(), data.size());
Reading a 1.6 MB file is almost instant.
But recently, I discovered std::istream_iterator and wanted to try it in o...
I have seen that you can either do
using System.IO
and use
Path.GetDirectoryName(blah blah)
OR directly use
System.IO.Path.GetDirectoryName(blah blah);
Is there any difference between them from a point of performance?
Does using System.IO loads all static classes in the namespace to the memory resulting in using more memory...
I'm working off of designs which show a scrollable box containing a list of a user's "contacts".
Users may have up to 10,000 contacts.
For now assume that all contacts are already in memory, and I'm simply trying to draw them. If you want to comment on the question of how wise it is to load 10k items of data in a browser, please do it...
I have two questions. The first is do Filters add a lot of overhead to request. We have a filter and it is set to run on the URL pattern /*. This means it also runs on all the image request. I think that this is not good for performance, but my co-workers think that it doesn't matter if the filter runs 5 or 6 times per request becaus...
I am trying to improve the performance of a DataGridView hooked up to a collection of custom data objects. The collection doesn't actually change size once initialized (i.e., no data objects are added or removed once the list is loaded on start-up), but the properties of the data objects dynamically change, and the grid is basically supp...
HI all,
I would like to know what are the best practices to improve the performance of the asp.net website?
Is there any tool to do the profiling? I am aware that Ant Profiler can be used, but its not free downloadable.
I am using CDN, caching etc.
...
We use signtool.exe to sign a set of managed assemblies (from a command prompt, we run signtool.exe in a trivial .bat file for-loop, applying a certificate from a pfx file)
When run under a domain administrator's account, it runs in under 1 minute.
When run under a local user account, it takes 37 minutes!
The setup and conditions (as...
I have a "fresh" git-svn repo (11.13 GB) that has over a 100,000 objects in it.
I have preformed
git fsck
git gc
on the repo after the initial checkout.
I then tried to do a
git status
The time it takes to do a git status is anywhere from 2m25.578s and 2m53.901s
I tested git status by issuing the command
time git status
5 tim...
Hi,
I have a listbox which has a datatemplate applied to the items. Each item id to display 3 text fields. The listbox is bound to an observablecollection. Everything is working fine, but when i try to load more than ~100 items into the collection, it starts chewing up all my CPU and takes ages to load.
Any suggestions?
...
I am comparing fusepy , Java based NFS server and native. I see that native file system is 4 times faster and surprisingly Java based NFS server is twice faster compared fusepy based loopback system. Any tips to improve the performance of file systems written based on fusepy or fuse-python. I am running them on linux kernel 2.6.9 and fus...
Hello,
I'm currently working on an indexer for a search feature. The indexer will work over data from "fields".
Fields looks like:
Field_id Field_type Field_name Field_Data
- 101 text Name Intel i7
- 102 integer Cores 4 physical, 4 virtual
- 103 select Vendor Intel
- ...
Hi,
I have 1 GB file of tables with data separated by columns. I have parsed it and stored in hash.
Later on I am using this hash for my further work. But during developing my code each time I compile for testing the " parsing and storing into hash" is executed and which makes my program slow.
Is there any way where I can store it so ...
I'm wondering about how to scale a database. Currently it uses PostgreSQL. Would switching to Oracle be worthwhile inspite of the coding pain and expense? Or is PostgreSQL + more boxes a better/cheaper approach?
...
I'm told that document.write should be avoided in web page since it hurts web page performance. But what is the exact reason?
...