| 標題: | PADDED STRING - TREATING STRING AS SEQUENCE OF MACHINE WORDS |
| 作者: | WU, PC WANG, FJ 資訊科學與工程研究所 Institute of Computer Science and Engineering |
| 關鍵字: | STRING;DATA STRUCTURE;STRING SORTING |
| 公開日期: | 1-九月-1994 |
| 摘要: | A string is a sequence of characters. The operations such as copy and comparison on strings are usually performed character by character. This note presents a data type called padded string, a string type with faster operations. A padded string is a sequence of machine words. For 32-bit machines, four characters can be operated in one machine instruction. Operations on padded strings can then run faster than traditional strings such as char* in C language. An experiment sorting an array of strings shows speedup 24% using padded string. |
| URI: | http://hdl.handle.net/11536/2356 |
| ISSN: | 0362-1340 |
| 期刊: | SIGPLAN NOTICES |
| Volume: | 29 |
| Issue: | 9 |
| 起始頁: | 64 |
| 結束頁: | 67 |
| 顯示於類別: | 期刊論文 |

