ObjFW  Check-in [305317e5ea]

Overview
Comment:Small optimization.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 305317e5ea9a790e95a1c30809181ca57a7907fcfdc64140351355d37fb9243d
User & Date: js on 2010-01-31 22:05:33
Other Links: manifest | tags
Context
2010-02-01
14:20
More secure way to unlock spinlocks. check-in: cb6e353487 user: js tags: trunk
2010-01-31
22:05
Small optimization. check-in: 305317e5ea user: js tags: trunk
21:51
Move OFFastEnumeration protocol to OFEnumerator.h. check-in: 8347c2ef5e user: js tags: trunk
Changes

Modified src/OFMutableString.m from [5bfa0023ae] to [2a95dc6ba0].

41
42
43
44
45
46
47

48
49
50
51
52
53
54
55
56
57
58
	size_t i, j, d;
	char *nstr;

	if (!is_utf8) {
		assert(table_size >= 1);

		uint8_t *p = (uint8_t*)*string + *length;


		while (--p >= (uint8_t*)*string)
			if (table[0][*p])
				*p = table[0][*p];

		return;
	}

	ulen = [self length];
	ustr = [self allocMemoryForNItems: [self length]
				 withSize: ulen];







>


|
|







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
	size_t i, j, d;
	char *nstr;

	if (!is_utf8) {
		assert(table_size >= 1);

		uint8_t *p = (uint8_t*)*string + *length;
		uint8_t t;

		while (--p >= (uint8_t*)*string)
			if ((t = table[0][*p]) != 0)
				*p = t;

		return;
	}

	ulen = [self length];
	ustr = [self allocMemoryForNItems: [self length]
				 withSize: ulen];

Modified src/OFObject.m from [695579ca2f] to [357eadb4d2].

whitespace changes only

Modified src/threading.h from [ec6d801a5e] to [b78d28aec0].

whitespace changes only