<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css"> Skip to main content

PADDED STRING - TREATING STRING AS SEQUENCE OF MACHINE WORDS

Loading...
Thumbnail Image

Journal Title

Journal ISSN

Volume Title

Publisher

DOI

Abstract

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.

Description

Citation

Endorsement

Review

Supplemented By

Referenced By