unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kentaro NAKAZAWA <kentaro.nakazawa@nifty.com>
To: Alan Mackenzie <acm@muc.de>
Cc: Kan-Ru Chen <kanru@kanru.info>, emacs-devel@gnu.org
Subject: Re: Slow fontification in C mode buffers
Date: Fri, 23 Dec 2011 10:56:15 +0900	[thread overview]
Message-ID: <87ehvwxd8g.fsf@nifty.com> (raw)
In-Reply-To: CALhHxSWNW4ePJb_ZFnOY9tLg5zfLOOu2Wr3uzTCo2d4t4bkAiQ@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

Hello. (sorry for my poor english ;)

Other pattern attached.
The file is very heavy at edit and undo.


Geoff Gole <geoffgole@gmail.com> writes:

> If another data point will help, I've also noticed *very* slow c-mode
> fontification in a script generated header,
> /usr/include/GL/gl_mangle.h. In case you don't have this header, a
> copy is attached.
>
> The file is basically several thousand #defines.
>

-- 
Kentaro Nakazawa

[-- Attachment #2: attribute.h --]
[-- Type: text/plain, Size: 13524 bytes --]

// -*- mode: c++ -*-

namespace NameSpace1 {
  namespace NameSpace2 {

    enum {
      kFooBarBazType_Attribute0000	= 0x0000,	// Comment0000
      kFooBarBazType_Attribute0001	= 0x0001,	// Comment0001
      kFooBarBazType_Attribute0002	= 0x0002,	// Comment0002
      kFooBarBazType_Attribute0003	= 0x0003,	// Comment0003
      kFooBarBazType_Attribute0004	= 0x0004,	// Comment0004
      kFooBarBazType_Attribute0005	= 0x0005,	// Comment0005
      kFooBarBazType_Attribute0006	= 0x0006,	// Comment0006
      kFooBarBazType_Attribute0007	= 0x0007,	// Comment0007
      kFooBarBazType_Attribute0008	= 0x0008,	// Comment0008
      kFooBarBazType_Attribute0009	= 0x0009,	// Comment0009
      kFooBarBazType_Attribute0010	= 0x000a,	// Comment0010
      kFooBarBazType_Attribute0011	= 0x000b,	// Comment0011
      kFooBarBazType_Attribute0012	= 0x000c,	// Comment0012
      kFooBarBazType_Attribute0013	= 0x000d,	// Comment0013
      kFooBarBazType_Attribute0014	= 0x000e,	// Comment0014
      kFooBarBazType_Attribute0015	= 0x000f,	// Comment0015
      kFooBarBazType_Attribute0016	= 0x0010,	// Comment0016
      kFooBarBazType_Attribute0017	= 0x0011,	// Comment0017
      kFooBarBazType_Attribute0018	= 0x0012,	// Comment0018
      kFooBarBazType_Attribute0019	= 0x0013,	// Comment0019
      kFooBarBazType_Attribute0020	= 0x0014,	// Comment0020
      kFooBarBazType_Attribute0021	= 0x0015,	// Comment0021
      kFooBarBazType_Attribute0022	= 0x0016,	// Comment0022
      kFooBarBazType_Attribute0023	= 0x0017,	// Comment0023
      kFooBarBazType_Attribute0024	= 0x0018,	// Comment0024
      kFooBarBazType_Attribute0025	= 0x0019,	// Comment0025
      kFooBarBazType_Attribute0026	= 0x001a,	// Comment0026
      kFooBarBazType_Attribute0027	= 0x001b,	// Comment0027
      kFooBarBazType_Attribute0028	= 0x001c,	// Comment0028
      kFooBarBazType_Attribute0029	= 0x001d,	// Comment0029
      kFooBarBazType_Attribute0030	= 0x001e,	// Comment0030
      kFooBarBazType_Attribute0031	= 0x001f,	// Comment0031
      kFooBarBazType_Attribute0032	= 0x0020,	// Comment0032
      kFooBarBazType_Attribute0033	= 0x0021,	// Comment0033
      kFooBarBazType_Attribute0034	= 0x0022,	// Comment0034
      kFooBarBazType_Attribute0035	= 0x0023,	// Comment0035
      kFooBarBazType_Attribute0036	= 0x0024,	// Comment0036
      kFooBarBazType_Attribute0037	= 0x0025,	// Comment0037
      kFooBarBazType_Attribute0038	= 0x0026,	// Comment0038
      kFooBarBazType_Attribute0039	= 0x0027,	// Comment0039
      kFooBarBazType_Attribute0040	= 0x0028,	// Comment0040
      kFooBarBazType_Attribute0041	= 0x0029,	// Comment0041
      kFooBarBazType_Attribute0042	= 0x002a,	// Comment0042
      kFooBarBazType_Attribute0043	= 0x002b,	// Comment0043
      kFooBarBazType_Attribute0044	= 0x002c,	// Comment0044
      kFooBarBazType_Attribute0045	= 0x002d,	// Comment0045
      kFooBarBazType_Attribute0046	= 0x002e,	// Comment0046
      kFooBarBazType_Attribute0047	= 0x002f,	// Comment0047
      kFooBarBazType_Attribute0048	= 0x0030,	// Comment0048
      kFooBarBazType_Attribute0049	= 0x0031,	// Comment0049
      kFooBarBazType_Attribute0050	= 0x0032,	// Comment0050
      kFooBarBazType_Attribute0051	= 0x0033,	// Comment0051
      kFooBarBazType_Attribute0052	= 0x0034,	// Comment0052
      kFooBarBazType_Attribute0053	= 0x0035,	// Comment0053
      kFooBarBazType_Attribute0054	= 0x0036,	// Comment0054
      kFooBarBazType_Attribute0055	= 0x0037,	// Comment0055
      kFooBarBazType_Attribute0056	= 0x0038,	// Comment0056
      kFooBarBazType_Attribute0057	= 0x0039,	// Comment0057
      kFooBarBazType_Attribute0058	= 0x003a,	// Comment0058
      kFooBarBazType_Attribute0059	= 0x003b,	// Comment0059
      kFooBarBazType_Attribute0060	= 0x003c,	// Comment0060
      kFooBarBazType_Attribute0061	= 0x003d,	// Comment0061
      kFooBarBazType_Attribute0062	= 0x003e,	// Comment0062
      kFooBarBazType_Attribute0063	= 0x003f,	// Comment0063
      kFooBarBazType_Attribute0064	= 0x0040,	// Comment0064
      kFooBarBazType_Attribute0065	= 0x0041,	// Comment0065
      kFooBarBazType_Attribute0066	= 0x0042,	// Comment0066
      kFooBarBazType_Attribute0067	= 0x0043,	// Comment0067
      kFooBarBazType_Attribute0068	= 0x0044,	// Comment0068
      kFooBarBazType_Attribute0069	= 0x0045,	// Comment0069
      kFooBarBazType_Attribute0070	= 0x0046,	// Comment0070
      kFooBarBazType_Attribute0071	= 0x0047,	// Comment0071
      kFooBarBazType_Attribute0072	= 0x0048,	// Comment0072
      kFooBarBazType_Attribute0073	= 0x0049,	// Comment0073
      kFooBarBazType_Attribute0074	= 0x004a,	// Comment0074
      kFooBarBazType_Attribute0075	= 0x004b,	// Comment0075
      kFooBarBazType_Attribute0076	= 0x004c,	// Comment0076
      kFooBarBazType_Attribute0077	= 0x004d,	// Comment0077
      kFooBarBazType_Attribute0078	= 0x004e,	// Comment0078
      kFooBarBazType_Attribute0079	= 0x004f,	// Comment0079
      kFooBarBazType_Attribute0080	= 0x0050,	// Comment0080
      kFooBarBazType_Attribute0081	= 0x0051,	// Comment0081
      kFooBarBazType_Attribute0082	= 0x0052,	// Comment0082
      kFooBarBazType_Attribute0083	= 0x0053,	// Comment0083
      kFooBarBazType_Attribute0084	= 0x0054,	// Comment0084
      kFooBarBazType_Attribute0085	= 0x0055,	// Comment0085
      kFooBarBazType_Attribute0086	= 0x0056,	// Comment0086
      kFooBarBazType_Attribute0087	= 0x0057,	// Comment0087
      kFooBarBazType_Attribute0088	= 0x0058,	// Comment0088
      kFooBarBazType_Attribute0089	= 0x0059,	// Comment0089
      kFooBarBazType_Attribute0090	= 0x005a,	// Comment0090
      kFooBarBazType_Attribute0091	= 0x005b,	// Comment0091
      kFooBarBazType_Attribute0092	= 0x005c,	// Comment0092
      kFooBarBazType_Attribute0093	= 0x005d,	// Comment0093
      kFooBarBazType_Attribute0094	= 0x005e,	// Comment0094
      kFooBarBazType_Attribute0095	= 0x005f,	// Comment0095
      kFooBarBazType_Attribute0096	= 0x0060,	// Comment0096
      kFooBarBazType_Attribute0097	= 0x0061,	// Comment0097
      kFooBarBazType_Attribute0098	= 0x0062,	// Comment0098
      kFooBarBazType_Attribute0099	= 0x0063,	// Comment0099
      kFooBarBazType_Attribute0100	= 0x0064,	// Comment0100
      kFooBarBazType_Attribute0101	= 0x0065,	// Comment0101
      kFooBarBazType_Attribute0102	= 0x0066,	// Comment0102
      kFooBarBazType_Attribute0103	= 0x0067,	// Comment0103
      kFooBarBazType_Attribute0104	= 0x0068,	// Comment0104
      kFooBarBazType_Attribute0105	= 0x0069,	// Comment0105
      kFooBarBazType_Attribute0106	= 0x006a,	// Comment0106
      kFooBarBazType_Attribute0107	= 0x006b,	// Comment0107
      kFooBarBazType_Attribute0108	= 0x006c,	// Comment0108
      kFooBarBazType_Attribute0109	= 0x006d,	// Comment0109
      kFooBarBazType_Attribute0110	= 0x006e,	// Comment0110
      kFooBarBazType_Attribute0111	= 0x006f,	// Comment0111
      kFooBarBazType_Attribute0112	= 0x0070,	// Comment0112
      kFooBarBazType_Attribute0113	= 0x0071,	// Comment0113
      kFooBarBazType_Attribute0114	= 0x0072,	// Comment0114
      kFooBarBazType_Attribute0115	= 0x0073,	// Comment0115
      kFooBarBazType_Attribute0116	= 0x0074,	// Comment0116
      kFooBarBazType_Attribute0117	= 0x0075,	// Comment0117
      kFooBarBazType_Attribute0118	= 0x0076,	// Comment0118
      kFooBarBazType_Attribute0119	= 0x0077,	// Comment0119
      kFooBarBazType_Attribute0120	= 0x0078,	// Comment0120
      kFooBarBazType_Attribute0121	= 0x0079,	// Comment0121
      kFooBarBazType_Attribute0122	= 0x007a,	// Comment0122
      kFooBarBazType_Attribute0123	= 0x007b,	// Comment0123
      kFooBarBazType_Attribute0124	= 0x007c,	// Comment0124
      kFooBarBazType_Attribute0125	= 0x007d,	// Comment0125
      kFooBarBazType_Attribute0126	= 0x007e,	// Comment0126
      kFooBarBazType_Attribute0127	= 0x007f,	// Comment0127
      kFooBarBazType_Attribute0128	= 0x0080,	// Comment0128
      kFooBarBazType_Attribute0129	= 0x0081,	// Comment0129
      kFooBarBazType_Attribute0130	= 0x0082,	// Comment0130
      kFooBarBazType_Attribute0131	= 0x0083,	// Comment0131
      kFooBarBazType_Attribute0132	= 0x0084,	// Comment0132
      kFooBarBazType_Attribute0133	= 0x0085,	// Comment0133
      kFooBarBazType_Attribute0134	= 0x0086,	// Comment0134
      kFooBarBazType_Attribute0135	= 0x0087,	// Comment0135
      kFooBarBazType_Attribute0136	= 0x0088,	// Comment0136
      kFooBarBazType_Attribute0137	= 0x0089,	// Comment0137
      kFooBarBazType_Attribute0138	= 0x008a,	// Comment0138
      kFooBarBazType_Attribute0139	= 0x008b,	// Comment0139
      kFooBarBazType_Attribute0140	= 0x008c,	// Comment0140
      kFooBarBazType_Attribute0141	= 0x008d,	// Comment0141
      kFooBarBazType_Attribute0142	= 0x008e,	// Comment0142
      kFooBarBazType_Attribute0143	= 0x008f,	// Comment0143
      kFooBarBazType_Attribute0144	= 0x0090,	// Comment0144
      kFooBarBazType_Attribute0145	= 0x0091,	// Comment0145
      kFooBarBazType_Attribute0146	= 0x0092,	// Comment0146
      kFooBarBazType_Attribute0147	= 0x0093,	// Comment0147
      kFooBarBazType_Attribute0148	= 0x0094,	// Comment0148
      kFooBarBazType_Attribute0149	= 0x0095,	// Comment0149
      kFooBarBazType_Attribute0150	= 0x0096,	// Comment0150
      kFooBarBazType_Attribute0151	= 0x0097,	// Comment0151
      kFooBarBazType_Attribute0152	= 0x0098,	// Comment0152
      kFooBarBazType_Attribute0153	= 0x0099,	// Comment0153
      kFooBarBazType_Attribute0154	= 0x009a,	// Comment0154
      kFooBarBazType_Attribute0155	= 0x009b,	// Comment0155
      kFooBarBazType_Attribute0156	= 0x009c,	// Comment0156
      kFooBarBazType_Attribute0157	= 0x009d,	// Comment0157
      kFooBarBazType_Attribute0158	= 0x009e,	// Comment0158
      kFooBarBazType_Attribute0159	= 0x009f,	// Comment0159
      kFooBarBazType_Attribute0160	= 0x00a0,	// Comment0160
      kFooBarBazType_Attribute0161	= 0x00a1,	// Comment0161
      kFooBarBazType_Attribute0162	= 0x00a2,	// Comment0162
      kFooBarBazType_Attribute0163	= 0x00a3,	// Comment0163
      kFooBarBazType_Attribute0164	= 0x00a4,	// Comment0164
      kFooBarBazType_Attribute0165	= 0x00a5,	// Comment0165
      kFooBarBazType_Attribute0166	= 0x00a6,	// Comment0166
      kFooBarBazType_Attribute0167	= 0x00a7,	// Comment0167
      kFooBarBazType_Attribute0168	= 0x00a8,	// Comment0168
      kFooBarBazType_Attribute0169	= 0x00a9,	// Comment0169
      kFooBarBazType_Attribute0170	= 0x00aa,	// Comment0170
      kFooBarBazType_Attribute0171	= 0x00ab,	// Comment0171
      kFooBarBazType_Attribute0172	= 0x00ac,	// Comment0172
      kFooBarBazType_Attribute0173	= 0x00ad,	// Comment0173
      kFooBarBazType_Attribute0174	= 0x00ae,	// Comment0174
      kFooBarBazType_Attribute0175	= 0x00af,	// Comment0175
      kFooBarBazType_Attribute0176	= 0x00b0,	// Comment0176
      kFooBarBazType_Attribute0177	= 0x00b1,	// Comment0177
      kFooBarBazType_Attribute0178	= 0x00b2,	// Comment0178
      kFooBarBazType_Attribute0179	= 0x00b3,	// Comment0179
      kFooBarBazType_Attribute0180	= 0x00b4,	// Comment0180
      kFooBarBazType_Attribute0181	= 0x00b5,	// Comment0181
      kFooBarBazType_Attribute0182	= 0x00b6,	// Comment0182
      kFooBarBazType_Attribute0183	= 0x00b7,	// Comment0183
      kFooBarBazType_Attribute0184	= 0x00b8,	// Comment0184
      kFooBarBazType_Attribute0185	= 0x00b9,	// Comment0185
      kFooBarBazType_Attribute0186	= 0x00ba,	// Comment0186
      kFooBarBazType_Attribute0187	= 0x00bb,	// Comment0187
      kFooBarBazType_Attribute0188	= 0x00bc,	// Comment0188
      kFooBarBazType_Attribute0189	= 0x00bd,	// Comment0189
      kFooBarBazType_Attribute0190	= 0x00be,	// Comment0190
      kFooBarBazType_Attribute0191	= 0x00bf,	// Comment0191
      kFooBarBazType_Attribute0192	= 0x00c0,	// Comment0192
      kFooBarBazType_Attribute0193	= 0x00c1,	// Comment0193
      kFooBarBazType_Attribute0194	= 0x00c2,	// Comment0194
      kFooBarBazType_Attribute0195	= 0x00c3,	// Comment0195
      kFooBarBazType_Attribute0196	= 0x00c4,	// Comment0196
      kFooBarBazType_Attribute0197	= 0x00c5,	// Comment0197
      kFooBarBazType_Attribute0198	= 0x00c6,	// Comment0198
      kFooBarBazType_Attribute0199	= 0x00c7,	// Comment0199
      kFooBarBazType_Attribute0200	= 0x00c8,	// Comment0200
      kFooBarBazType_Attribute0201	= 0x00c9,	// Comment0201
      kFooBarBazType_Attribute0202	= 0x00ca,	// Comment0202
      kFooBarBazType_Attribute0203	= 0x00cb,	// Comment0203
      kFooBarBazType_Attribute0204	= 0x00cc,	// Comment0204
      kFooBarBazType_Attribute0205	= 0x00cd,	// Comment0205
      kFooBarBazType_Attribute0206	= 0x00ce,	// Comment0206
      kFooBarBazType_Attribute0207	= 0x00cf,	// Comment0207
      kFooBarBazType_Attribute0208	= 0x00d0,	// Comment0208
      kFooBarBazType_Attribute0209	= 0x00d1,	// Comment0209
      kFooBarBazType_Attribute0210	= 0x00d2,	// Comment0210
      kFooBarBazType_Attribute0211	= 0x00d3,	// Comment0211
      kFooBarBazType_Attribute0212	= 0x00d4,	// Comment0212
      kFooBarBazType_Attribute0213	= 0x00d5,	// Comment0213
      kFooBarBazType_Attribute0214	= 0x00d6,	// Comment0214
      kFooBarBazType_Attribute0215	= 0x00d7,	// Comment0215
      kFooBarBazType_Attribute0216	= 0x00d8,	// Comment0216
      kFooBarBazType_Attribute0217	= 0x00d9,	// Comment0217
      kFooBarBazType_Attribute0218	= 0x00da,	// Comment0218
      kFooBarBazType_Attribute0219	= 0x00db,	// Comment0219
      kFooBarBazType_Attribute0220	= 0x00dc,	// Comment0220
      kFooBarBazType_Attribute0221	= 0x00dd,	// Comment0221
      kFooBarBazType_Attribute0222	= 0x00de,	// Comment0222
    };

  } // namespace Namespace2
} // namespace Namespace1

  parent reply	other threads:[~2011-12-23  1:56 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-03 13:19 Slow fontification in C mode buffers Eli Zaretskii
2011-12-03 15:03 ` Sujith
2011-12-03 15:14   ` Eli Zaretskii
2011-12-03 15:32     ` Sujith
2011-12-03 15:18 ` Alan Mackenzie
2011-12-03 16:19   ` Eli Zaretskii
2011-12-13 15:31   ` Kan-Ru Chen
2011-12-14 11:19     ` Alan Mackenzie
2011-12-14 11:30     ` Alan Mackenzie
2011-12-14 12:23       ` Alan Mackenzie
2011-12-14 13:14     ` Alan Mackenzie
2011-12-14 15:02       ` Kan-Ru Chen
2011-12-15 13:43     ` Alan Mackenzie
2011-12-15 16:16       ` Kan-Ru Chen
2011-12-15 18:12         ` Alan Mackenzie
2011-12-16  2:32           ` Kan-Ru Chen
2011-12-16 11:26             ` Alan Mackenzie
2011-12-17 16:06               ` Kan-Ru Chen
2011-12-21 10:56                 ` Alan Mackenzie
2011-12-21 13:33                   ` Geoff Gole
2011-12-21 16:04                     ` Alan Mackenzie
2011-12-21 16:48                       ` Geoff Gole
2011-12-21 18:06                         ` Alan Mackenzie
2011-12-21 18:16                     ` Eli Zaretskii
2011-12-21 18:32                       ` Geoff Gole
2011-12-21 19:35                         ` Eli Zaretskii
2011-12-23  1:56                     ` Kentaro NAKAZAWA [this message]
2011-12-23 12:03                       ` Alan Mackenzie
2012-01-06 22:08                       ` Alan Mackenzie
2012-01-07  0:09                         ` Kentaro NAKAZAWA
2012-01-07 13:50                           ` Alan Mackenzie
2012-01-08  1:26                             ` Kentaro NAKAZAWA
2012-01-08 10:05                               ` Alan Mackenzie
2012-01-20 17:26                               ` Alan Mackenzie
2012-02-06 16:14                                 ` Kentaro NAKAZAWA
2011-12-22 16:06                   ` Kan-Ru Chen
2012-01-13 19:12                 ` Alan Mackenzie
2012-01-14  9:12                   ` Kan-Ru Chen
2012-01-15 21:12                 ` Alan Mackenzie
2012-01-22  4:20                   ` Kan-Ru Chen
2011-12-03 21:15 ` Alan Mackenzie
2011-12-04  6:00   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehvwxd8g.fsf@nifty.com \
    --to=kentaro.nakazawa@nifty.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=kanru@kanru.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).