| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** This C program extracts all "words" from an input document and adds them | 2 ** This C program extracts all "words" from an input document and adds them |
| 3 ** to an SQLite database. A "word" is any contiguous sequence of alphabetic | 3 ** to an SQLite database. A "word" is any contiguous sequence of alphabetic |
| 4 ** characters. All digits, punctuation, and whitespace characters are | 4 ** characters. All digits, punctuation, and whitespace characters are |
| 5 ** word separators. The database stores a single entry for each distinct | 5 ** word separators. The database stores a single entry for each distinct |
| 6 ** word together with a count of the number of occurrences of that word. | 6 ** word together with a count of the number of occurrences of that word. |
| 7 ** A fresh database is created automatically on each run. | 7 ** A fresh database is created automatically on each run. |
| 8 ** | 8 ** |
| 9 ** wordcount DATABASE INPUTFILE | 9 ** wordcount DATABASE INPUTFILE |
| 10 ** | 10 ** |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 printf("-- Scratch Overflow Bytes: %d (max %d)\n", iCur,iHiwtr); | 536 printf("-- Scratch Overflow Bytes: %d (max %d)\n", iCur,iHiwtr); |
| 537 sqlite3_status(SQLITE_STATUS_MALLOC_SIZE, &iCur, &iHiwtr, 0); | 537 sqlite3_status(SQLITE_STATUS_MALLOC_SIZE, &iCur, &iHiwtr, 0); |
| 538 printf("-- Largest Allocation: %d bytes\n",iHiwtr); | 538 printf("-- Largest Allocation: %d bytes\n",iHiwtr); |
| 539 sqlite3_status(SQLITE_STATUS_PAGECACHE_SIZE, &iCur, &iHiwtr, 0); | 539 sqlite3_status(SQLITE_STATUS_PAGECACHE_SIZE, &iCur, &iHiwtr, 0); |
| 540 printf("-- Largest Pcache Allocation: %d bytes\n",iHiwtr); | 540 printf("-- Largest Pcache Allocation: %d bytes\n",iHiwtr); |
| 541 sqlite3_status(SQLITE_STATUS_SCRATCH_SIZE, &iCur, &iHiwtr, 0); | 541 sqlite3_status(SQLITE_STATUS_SCRATCH_SIZE, &iCur, &iHiwtr, 0); |
| 542 printf("-- Largest Scratch Allocation: %d bytes\n", iHiwtr); | 542 printf("-- Largest Scratch Allocation: %d bytes\n", iHiwtr); |
| 543 } | 543 } |
| 544 return 0; | 544 return 0; |
| 545 } | 545 } |
| OLD | NEW |