Sponsored Content
Full Discussion: Speed it up!
Top Forums UNIX for Dummies Questions & Answers Speed it up! Post 1488 by pappous on Saturday 10th of March 2001 03:58:57 AM
Old 03-10-2001
Thank you for your reply, but that was not exactly what I meant. The idea is how to make it faster not physically but with software.

Maybe to remove something that is generally not needed... That kind of stuff...
 

10 More Discussions You Might Find Interesting

1. HP-UX

ftp speed

Background; FTP-ing a small 210K file to a HP7410 attached to a EVA500 the averaging speed 400KB/s FTP-ing a small 210K file to a K570 the average speed is 4500KB/s FTP-ing a 31MB file to a HP7410 attached to a EVA 5000 the average speed is 5500KB/s FTP-ing a 31MB file to a K570 the average... (3 Replies)
Discussion started by: ottof
3 Replies

2. UNIX for Dummies Questions & Answers

Speed of mv vs. cp

Hi, Is mv (move) command quicker than cp (copy command)? I have large files and I want to know if mv actually copy the data to a new file then deletes the old or whether it just alters information the file system without physically moving data - Unfortuanately I don't have large files to test... (2 Replies)
Discussion started by: GMMike
2 Replies

3. Filesystems, Disks and Memory

dmidecode, RAM speed = "Current Speed: Unknown"

Hello, I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info: RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!! Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies

4. Shell Programming and Scripting

Optimizing for a Speed-up

How would one go about optimizing this current .sh program so it works at a more minimal time. Such as is there a better way to count what I need than what I have done or better way to match patterns in the file? Thanks, #declare variables to be used. help=-1 count=0 JanCount=0 FebCount=0... (3 Replies)
Discussion started by: switch
3 Replies

5. Shell Programming and Scripting

Processor and Its speed

Hi I need a command to know how many processors are available and what is their speed in UNIX. Thanks (2 Replies)
Discussion started by: diksha2207
2 Replies

6. Filesystems, Disks and Memory

data from blktrace: read speed V.S. write speed

I analysed disk performance with blktrace and get some data: read: 8,3 4 2141 2.882115217 3342 Q R 195732187 + 32 8,3 4 2142 2.882116411 3342 G R 195732187 + 32 8,3 4 2144 2.882117647 3342 I R 195732187 + 32 8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies

7. Shell Programming and Scripting

How can i speed this script up?

Hi, Im quite new to scripting and would like a bit of assistance with trying to speed up the following script. At the moment it is quite slow.... Any way to improve it? total=111120 while do total=`expr $total + 1` INCREMENT=$total firstline = "blablabla" secondline = "blablabla"... (5 Replies)
Discussion started by: brunlea
5 Replies

8. Programming

malloc vs new speed

Which one is faster among malloc and new? My understanding is that since new also has to call constructors after allocating memory it must be slower than malloc. Am I correct? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

9. Shell Programming and Scripting

Speed Up Grep

Hi, I have to grep string from 20 - 30 files each carries 200 - 300 MB size and append to the file. How to speed the grepping time. cat catalina.out_2012_01_01 | grep "xxxxx" >> backup.txt PLZ, Suggest me, Regards, Nanthagopal A (5 Replies)
Discussion started by: nanthagopal
5 Replies

10. Shell Programming and Scripting

Help me with speed up this script

hey guys i have a perl script wich use to compare hashes but it tookes a long time to do that so i wich i will have the soulition to do it soo fast he is the code <redacted> (1 Reply)
Discussion started by: benga
1 Replies
xcb-requests(3) 						   XCB examples 						   xcb-requests(3)

NAME
xcb-requests - about request manpages DESCRIPTION
Every request in X11, like MapWindow, corresponds to a number of functions and data structures in XCB. For MapWindow, XCB provides the function xcb_map_window, which fills the xcb_map_window_request_t data structure and writes that to the X11 connection. Since the MapWindow request does not have a reply, this is the most simple case. REPLIES
Many requests have replies. For each reply, XCB provides at least a corresponding data structure and a function to return a pointer to a filled data structure. Let's take the InternAtom request as an example: XCB provides the xcb_intern_atom_reply_t data structure and xcb_intern_atom_reply function. For replies which are more complex (for example lists, such as in xcb_list_fonts), accessor functions are provided. COOKIES
XCB returns a cookie for each request you send. This is an XCB-specific data structure containing the sequence number with which the request was sent to the X11 server. To get any reply, you have to provide that cookie (so that XCB knows which of the waiting replies you want). Here is an example to illustrate the use of cookies: void my_example(xcb_connection *conn) { xcb_intern_atom_cookie_t cookie; xcb_intern_atom_reply_t *reply; cookie = xcb_intern_atom(conn, 0, strlen("_NET_WM_NAME"), "_NET_WM_NAME"); /* ... do other work here if possible ... */ if ((reply = xcb_intern_atom_reply(conn, cookie, NULL))) { printf("The _NET_WM_NAME atom has ID %u0, reply->atom); } free(reply); } CHECKED VS. UNCHECKED The checked and unchecked suffixes for functions determine which kind of error handling is used for this specific request. For requests which have no reply (for example xcb_map_window), errors will be delivered to the event loop (you will receive an X11 event of type 0 when calling xcb_poll_for_event). If you want to explicitly check for errors in a blocking fashion, call the _checked version of the function (for example xcb_map_window_checked) and use xcb_request_check. For requests which have a reply (for example xcb_intern_atom), errors will be checked when calling the reply function. To get errors in the event loop instead, use the _unchecked version of the function (for example xcb_intern_atom_unchecked). Here is an example which illustrates the four different ways of handling errors: /* * Request without a reply, handling errors in the event loop (default) * */ void my_example(xcb_connection *conn, xcb_window_t window) { /* This is a request without a reply. Errors will be delivered to the event * loop. Getting an error to xcb_map_window most likely is a bug in our * program, so we don't need to check for that in a blocking way. */ xcb_map_window(conn, window); /* ... of course your event loop would not be in the same function ... */ while ((event = xcb_wait_for_event(conn)) != NULL) { if (event->response_type == 0) { fprintf("Received X11 error %d ", error->error_code); free(event); continue; } /* ... handle a normal event ... */ } } /* * Request without a reply, handling errors directly * */ void my_example(xcb_connection *conn, xcb_window_t deco, xcb_window_t window) { /* A reparenting window manager wants to know whether a new window was * successfully reparented. If not (because the window got destroyed * already, for example), it does not make sense to map an empty window * decoration at all, so we need to know this right now. */ xcb_void_cookie_t cookie = xcb_reparent_window_checked(conn, window, deco, 0, 0); xcb_generic_error_t *error; if ((error = xcb_request_check(conn, cookie))) { fprintf(stderr, "Could not reparent the window "); free(error); return; } /* ... do window manager stuff here ... */ } /* * Request with a reply, handling errors directly (default) * */ void my_example(xcb_connection *conn, xcb_window_t window) { xcb_intern_atom_cookie_t cookie; xcb_intern_atom_reply_t *reply; xcb_generic_error_t *error; cookie = xcb_intern_atom(c, 0, strlen("_NET_WM_NAME"), "_NET_WM_NAME"); /* ... do other work here if possible ... */ if ((reply = xcb_intern_atom_reply(c, cookie, &error))) { printf("The _NET_WM_NAME atom has ID %u0, reply->atom); free(reply); } else { fprintf(stderr, "X11 Error %d ", error->error_code); free(error); } } /* * Request with a reply, handling errors in the event loop * */ void my_example(xcb_connection *conn, xcb_window_t window) { xcb_intern_atom_cookie_t cookie; xcb_intern_atom_reply_t *reply; cookie = xcb_intern_atom_unchecked(c, 0, strlen("_NET_WM_NAME"), "_NET_WM_NAME"); /* ... do other work here if possible ... */ if ((reply = xcb_intern_atom_reply(c, cookie, NULL))) { printf("The _NET_WM_NAME atom has ID %u0, reply->atom); free(reply); } /* ... of course your event loop would not be in the same function ... */ while ((event = xcb_wait_for_event(conn)) != NULL) { if (event->response_type == 0) { fprintf("Received X11 error %d ", error->error_code); free(event); continue; } /* ... handle a normal event ... */ } } SEE ALSO
xcb_map_window(3), xcb_intern_atom(3), xcb_list_fonts(3), xcb_poll_for_event(3), xcb_request_check(3) AUTHOR
Michael Stapelberg <michael+xcb at stapelberg dot de> XCB
2011-12-11 xcb-requests(3)
All times are GMT -4. The time now is 10:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy