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.
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.
I am trying to show a .tif image in matlab and I use these two line of codes
a = imread('C:\Users\sepideh\Desktop\21_15.tif');
imshow(a)
that encounters this warning
Warning: Image is too big to fit on screen; displaying at 3%
In imuitools\private\initSize at 73
In imshow at 262
what is the cause of this warning and what can I do to fix that?
the main trouble is it sometimes doesn't show the image and of course even if it shows the image CPU usage gets high that I can't zoom properly
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.
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?
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:
...
}
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 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.
I have a bitmap and I want to scale it up to fill an ImageView and overlay the unscaled version of the bitmap on top.
Which would be cheaper (in terms of memory and processor usage)?
Using two ImageViews, one for each version of the bitmap
Using a canvas and drawing on the singular bitmap, using one ImageView
I saw this question about ImageView vs Canvas, but it doesn't address memory/processor concerns. My intuition says two ImageViews may use more RAM, while using a canvas would use more processing power while the drawing occurs.
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.
Traits have been one of the biggest additions for PHP 5.4. I know the synatax and understand the idea behind traits, like horizontal code re-usage for common stuff like logging, security, caching etc.
However, I still dont know yet how I would make use of traits in my projects.
Are there any open source projects that already use traits? Any good articles/reading material on how to structure architectures using traits?
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 ????
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.
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
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)
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.
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?
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
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.
Hello all
Can you recommend me on places where i can read and see examples on usage of Lambda operator in c# .
I will really like to see a lot examples on it...
Thanks.
I recently installed the release version of Visual Studio 2010. So far I'm less than impressed with the rewrite and was wondering if I'm the only one.
The thing I dislike the most is the inability to use the old-school MDI windows instead of the dreaded tabbed documents.
For the other side the usage generator seems like it may prove useful in time.
So what do you like or dislike about the changes to VS2010?
I'm looking for a good multi-thread-aware debugger, capable of showing performance charts of application threads on Linux, don't know if such a thing exists, perhaps as a Eclipse plugin.
The idea would be to track per thread memory allocation a CPU usage as well as being able to interrupt a thread and examine its stack trace, local vars, etc.
It does not have to be an eclipse plugin or a free tool, do any of you have heard of something similar?
As far as I understand, due to license reqirements all web applications, which use MS SQL Server, use SQL Server Express (free) or SQL Server web edition (processor license).
Is it so?
What are other specific features of SQL Server usage for web app?
Is there anything wrong with the optimization of overloading the global operator new to round up all allocations to the next power of two? Theoretically, this would lower fragmentation at the cost of higher worst-case memory consumption, but does the OS already have redundant behavior with this technique, or does it do its best to conserve memory?
Basically, given that memory usage isn't as much of an issue as performance, should I do this?
on reflecting how to talk with prospect customers on technologies for web applications, what are important requirements for chosing a specific technology?
I am biased towards ruby on rails, but the code base and community of PHP is larger, while the user experience of flash sites is often an advantage to the segment of higher paying customers.
how would you argue for or against the usage of a technology in general? for ruby on rails in particular?