![]() This full search of the source code (which I had stored in C:\mysql-5.5\mysql-5.5) took only about 2 minutes. Unlike the Windows search, which simply returns the file name, this shows the file name *and* the full line of code, therefore sometimes answering my question without even needing to examine the source code. storage/myisam/myisampack.c:static uint tree_buff_length= 65536 - MALLOC_OVERHEAD storage/myisam/myisamdef.h:#define MIN_SORT_BUFFER (4096-MALLOC_OVERHEAD) storage/myisam/myisamdef.h:#define SORT_BUFFER_INIT (2048L*1024L-MALLOC_OVERHEAD) storage/myisam/myisamdef.h:#define READ_BUFFER_INIT (1024L*256L-MALLOC_OVERHEAD) storage/myisam/myisamdef.h:#define USE_BUFFER_INIT (((1024L*512L-MALLOC_OVERHEAD)/IO_SIZE)*IO_SIZE) storage/myisam/myisamchk.c: ULONG_MAX, (long) MALLOC_OVERHEAD, (long) 1L, 0}, storage/myisam/myisamchk.c: (long) SORT_BUFFER_INIT, (long) (MIN_SORT_BUFFER MALLOC_OVERHEAD), storage/myisam/myisamchk.c: INT_MAX32, (long) MALLOC_OVERHEAD, (long) 1L, 0}, storage/myisam/myisamchk.c: (long) READ_BUFFER_INIT, (long) MALLOC_OVERHEAD, storage/myisam/myisamchk.c: SIZE_T_MAX, MALLOC_OVERHEAD, IO_SIZE, 0}, storage/myisam/myisamchk.c: GET_ULL, REQUIRED_ARG, USE_BUFFER_INIT, MALLOC_OVERHEAD, mysys/array.c: alloc_increment=max((8192-MALLOC_OVERHEAD)/element_size,16) ![]() include/my_sys.h:#define ALLOC_ROOT_MIN_BLOCK_SIZE (MALLOC_OVERHEAD sizeof(USED_MEM) 8 ) include/my_global.h:#define RECORD_CACHE_SIZE (uint) (64*1024-MALLOC_OVERHEAD) include/my_global.h:#define ONCE_ALLOC_INIT (uint) (4096-MALLOC_OVERHEAD) include/my_global.h:#define MALLOC_OVERHEAD 8 include/my_global.h: something like 1024-MALLOC_OVERHEAD bytes extra/replace.c: len=(PC_MALLOC*pa->array_allocs - MALLOC_OVERHEAD) extra/replace.c: pa->max_length=pa->max_length*PS_MALLOC-MALLOC_OVERHEAD extra/replace.c: pa->max_length=(pa->length length MALLOC_OVERHEAD PS_MALLOC-1)/PS_MALLOC extra/replace.c: pa->max_length=PS_MALLOC-MALLOC_OVERHEAD extra/replace.c: pa->max_count=(PC_MALLOC-MALLOC_OVERHEAD)/(sizeof(uchar*) extra/replace.c: if (!(pa->str= (uchar*) my_malloc((uint) (PS_MALLOC-MALLOC_OVERHEAD), extra/replace.c: my_malloc(((PC_MALLOC-MALLOC_OVERHEAD)/ client/: len=(PC_MALLOC*pa->array_allocs - MALLOC_OVERHEAD) client/: pa->max_length=PS_MALLOC-MALLOC_OVERHEAD client/: pa->max_count=(PC_MALLOC-MALLOC_OVERHEAD)/(sizeof(uchar*) client/: if (!(pa->str= (uchar*) my_malloc((uint) (PS_MALLOC-MALLOC_OVERHEAD), client/: my_malloc(((PC_MALLOC-MALLOC_OVERHEAD)/ See the new results when searching for “MALLOC_OVERHEAD”: C:\mysql-5.5\mysql-5.5>grep -r "MALLOC_OVERHEAD". Well, I downloaded it, extracted it to the location I wanted, and added the. My Windows search came up empty, and someone suggested I try grep for Windows. It wasn’t too long ago and I was searching the source for “MALLOC_OVERHEAD”. It doesn't copy any files into your Windows folder, but does use the registry to save settings.For Windows users, if you try searching the MySQL source code for various strings, you know you will often come up empty with the built-in Windows search. By default it will install into your Program Files directory (usually c:\program files\windows grep) but you can install it anywhere. To install, simply download the file and run. Once you've found what you're looking for, you can open the files found for viewing or editing, or you can replace the text found with something else. Delimited and fixed width data file searching at field-level.Saving and retrieval of search criteria.Searches plain text and UNIX-style text files:.Support for beginning and expert users:.Windows Grep is designed for searching plain-ASCII text files, such as program source, HTML, RTF and batch files, but it can also search binary files such as word processor documents, databases, spreadsheets and executables. In addition to searching, Windows Grep also performs global replacing in your files, with complete safety. The program combines the power and flexibility of traditional command line grep utilities available on DOS, UNIX and other platforms with the ease of use of Microsoft Windows. Although Windows and many other programs have file searching capabilities built-in, none can match the power and versatility of Windows Grep. Windows Grep is a tool for searching files for text strings that you specify.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |