Does anyone know of a memory efficient way to generate very large xml files (e.g. 100-500 MiB) in Python?
I've been utilizing lxml, but memory usage is through the roof.
I have a large tree structure on which several threads are working at the same time. Ideally, I would like to have an individual mutex lock for each cell.
I looked at the definition of pthread_mutex_t in bits/pthreadtypes.h and it is fairly short, so the memory usage should not be an issue in my case.
However, is there any performance penalty when using many (let's say a few thousand) different pthread_mutex_ts for only 8 threads?
I'd like to show a webcam inside a browser without any server interaction.
Everything should happen client side with minimal plugins usage.
This would replicate most default webcam software bundled with the cam itself.
Hello,
I am trying to access a Linux system's NOR flash memory. I tried use __raw_readl(xxxxx) (through io_p2v) to read NOR memory data, but I failed.
Is there any way I can access that memory?
Will driver /dev/mem work for this? I guess not. it is only for the RAM maybe.
Can anyone help?
My primary editor is Emacs, but my usage habits and knowledge of features has barely changed over the last few years.
What are the Emacs features that you use on a daily basis? Are there any little-known Emacs features that you find very useful?
Edit: Made this into the recommended poll format...please put one feature per answer from now on.
When placing message calls (arrows from one active lifeline to another) in a system sequence diagram in Visio, I noticed that there is a property called "system sequence." Anyone know what the intended usage of this field is?
Running Eclipse 3.5.1, JDK 1.6.0_17 on WinXP SP3 32Bit with 3.5 gigs of RAM.
I'm aware of the known Eclipse best practices, still trying to figure out eclipse.ini.
This will launch: -Xmx588m and this won't: -Xmx589m.
Same with -XX:MaxPermSize. Anything above -XX:MaxPermSize=140m won't launch.
The screen of death is simlar to this (taken from here).
Any ideas on why might this be happening?
I want to store some user preferences Would Enum be a good datastructure to store them? If so, how do I do it? This is the final usage of the datastructure.
main(){
int my_val = PREFERENCES.BLACK;
switch(PREFERENCES){
case BLACK:
...
}
Now we have a firebird database with 1.000.000 that must be processed after ALL are loaded in RAM memory. To get all of those we must extract data using (select * first 1000 ...) for 8 hours. What is the solution for this?
I have a QML Flickable with 3 QML image elements that cycle through 8 image files. My problem is for each new image it loads into memory it does not release the the unused image. This is causing memory usage to become double what is necessary at times.
I would like to know if there is some function I can use to force it to unload all the unused images? If it makes a difference, this is mainly for Symbian.
When I try to initialize a 3D array of size 300*300*4 in a C program, my program stops running and reports stack overflow error. The system I am using has 3GB RAM, which should be sufficeint. Is there any way to increase memory allocated to a program? I am using Dev C++ on Windows Vista.
We have eight Xeon (i7) cores and 16 gig of RAM on our SSIS box. We have about 200 image files we want to convert using a command line utility every day. Currently the process is using Adobe Photoshop and droplets (very manual, taking upwards of two hours a day)
Using SSIS hot folders, is there a way to execute up to eight conversions at once?
Is there any way to tell a process completed or execute code upon it's completion?
We are developing a site that will require the usage of a captcha service.
Has anyone successfully use Google Recaptcha (https://www.google.com/recaptcha/intro/index.html) for a website for users from Mainland China?
Did you have major problems with load-time?
Did you experience any reliability problems?
Any problems with the great firewall of china?
Any experience that you can share is appreciated.
Can someone please give me the details about the Eclipse memory usage in Windows XP and Linux?
I heard Eclipse consumes less memory in Linux compared to Windows?
Is it true? What ever the OS is, IDE will look for some amount memory so how will it vary with OS?
Related Question:
Eclipse memory use
Hi,
I'm considering to use WPF for an application running on an iX104 (unfortunately I don't have one of those yet).
Do you guys think that this combination would be efficient enough? Or is WPF just to slow for such a machine, so better stick with WinForms?
Relevant specs of the iX104:
Intel Pentium U2500 CoreDuo 2x 1.2 GHz
1 GB RAM, optional 2 GB
10.4" TFT, XGA 1024x768
Regards,
Kasimier
I would like to know what are the open source and commerical tools for window Service Testing. Like memeory usage and code leakes etc ..
C# 2.0 - Window Service.
I need to write a Windows XP/Vista application, main requirements:
Just one .exe file, without extra runtime, like Air, .Net; posstibly a couple of dlls.
Very small file size.
The application is for network centric usage, similar to ICQ or Gtalk clients.
Hi,
Is enterprise library for exception handling and logging efficient in terms of its memory usage for the functionality provided?
What are the pros and cons?
Thanks
I have a program written in c++ that I want to profile, and I want to avoid restarting it when I start and stop profiling. Ideally I would be profiling both CPU usage and memory allocation. Is there any tool that will allow me to do this?
I have a convert method, which takes a String and a class as arguments and constructs an object of the given class, which will be returned.
The usage should look like this
Something s = Converter.convert("...", Something.class)
Is it possible to express this with Java generics?
Something like:
public static <T> T convert(String source, ??? TClass)
What would be ????
Do you know how to make it more stable, maybe properties to set, memory to allocate?
It always hangs up when redeploying web apps, thru manager (wars), web interface or maven plugin.
every second time it gives PermGenSpace, no memory errors etc.
on my local machine 3gb ram.
It looks like it should be manually set up to work in a stable way.
How to fix such a problem?
I'm searching a tool for generating UML-Diagrams by the import of SQL-Syntax-Files.
I need it for personal usage. Best if it's free or if there is a free trial license available.
Hi,
I'd like to handle directly 64-bit words on the CUDA platform (eg. uint64_t vars).
I understand, however, that addressing space, registers and the SP architecture are all 32-bit based.
I actually found this to work correctly (on my CUDA cc1.1 card):
__global__ void test64Kernel( uint64_t *word )
{
(*word) <<= 56;
}
but I don't know, for example, how this affects registers usage and the operations per clock cycle count.
when i read through source files of opensource projects i often come across some weird phrases in the comments
/*
@brief ......
@usage.....
@remarks....
@par....
*/
questions
1.What are they?(were not mentioned when i was learning c++)
2.Do they have any documentation(where)