Message from discussion
Problem with large file and highlight.current.word=1
Received: by 10.66.83.74 with SMTP id o10mr3206351pay.33.1345684029676;
Wed, 22 Aug 2012 18:07:09 -0700 (PDT)
X-BeenThere: scite-interest@googlegroups.com
Received: by 10.68.195.39 with SMTP id ib7ls307148pbc.9.gmail; Wed, 22 Aug
2012 18:07:08 -0700 (PDT)
Received: by 10.68.224.196 with SMTP id re4mr38170pbc.1.1345684028726;
Wed, 22 Aug 2012 18:07:08 -0700 (PDT)
Received: by 10.68.224.196 with SMTP id re4mr38169pbc.1.1345684028702;
Wed, 22 Aug 2012 18:07:08 -0700 (PDT)
Return-Path: <nyamaton...@me.com>
Received: from nk11p08mm-asmtp010.mac.com (nk11p08mm-asmtp010.mac.com. [17.158.58.147])
by gmr-mx.google.com with ESMTP id nv4si2607856pbc.2.2012.08.22.18.07.08;
Wed, 22 Aug 2012 18:07:08 -0700 (PDT)
Received-SPF: pass (google.com: domain of nyamaton...@me.com designates 17.158.58.147 as permitted sender) client-ip=17.158.58.147;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of nyamaton...@me.com designates 17.158.58.147 as permitted sender) smtp.mail=nyamaton...@me.com
MIME-version: 1.0
Content-type: multipart/alternative;
boundary="Boundary_(ID_KgeW/MhALr3YmhNtGoVOOA)"
Received: from [10.1.1.8] (124-171-27-243.dyn.iinet.net.au [124.171.27.243])
by nk11p08mm-asmtp010.mac.com
(Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan
3 2012)) with ESMTPSA id <0M96002DTOFTL...@nk11p08mm-asmtp010.mac.com> for
scite-interest@googlegroups.com; Thu, 23 Aug 2012 01:07:08 +0000 (GMT)
X-Proofpoint-Virus-Version: vendor=fsecure
engine=2.50.10432:5.7.7855,1.0.260,0.0.0000
definitions=2012-08-22_04:2012-08-22,2012-08-22,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001
definitions=main-1208220278
From: Neil Hodgson <nyamaton...@me.com>
Subject: Re: [scite] Problem with large file and highlight.current.word=1
Date: Thu, 23 Aug 2012 11:07:02 +1000
In-reply-to: <CAJGXfzH+q72myM6L_jak7nHjjW_o1RFmw5n8aHFR5Ob91Ad...@mail.gmail.com>
To: scite-interest@googlegroups.com
References: <4ba8c9ee-135d-418f-aa54-248a32b784d1@googlegroups.com>
<61C73E47-4950-490D-96A5-FB2419D21...@me.com>
<CAJGXfzH+q72myM6L_jak7nHjjW_o1RFmw5n8aHFR5Ob91Ad...@mail.gmail.com>
Message-id: <A5F94683-D44F-4257-A000-2F7C89AF3...@me.com>
X-Mailer: Apple Mail (2.1278)
--Boundary_(ID_KgeW/MhALr3YmhNtGoVOOA)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
J=E9r=F4me LAFORGE:
> You can turn it off per-directory with local options.
>=20
> I know, but you have to always open the file into directory with good =
local options. Because, if you forget to do that you editor can be =
frozen. =46rom my point of view, I prefer automatic solution.
Fixing "editor is frozen" isn't as strict as making the feature =
usable: it only has to be limited to allowing the user to close the file =
or open local properties to turn it off. One second of lag, even two is =
fine for that.
> This solution is quite straightforward. But with this limitation, the =
user can be tricked because he see some highlighted occurrences but =
sometime (with slow computer or large file) all occurrences are not =
highlighted into the file.
If the timer expires then all highlights should be removed.
> Do you think that is better to disable completely this feature?
> For example, if the file is larger than 500KB, then =
highlight.current.word is disabled.
I'd select 1 MB as a nice round number which would produce about a =
250 ms lag for "style" in a file similar to src/Embedded.properties on =
my machine although it will be slower on an Atom.
> Although, to define this maximum size file for highlight current word,
> maybe the property max.file.size can be used =
(http://www.scintilla.org/SciTEDoc.html#property-max.file.size).
That is tying two distinct features together.
Neil
--Boundary_(ID_KgeW/MhALr3YmhNtGoVOOA)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div><div>J=E9r=F4me LAFORGE:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word"><div class=3D"im"><div> You =
can turn it off per-directory with local options.</div>
</div></div></blockquote><div><br></div><div>I know, but you have to =
always open the file into directory with good local options. Because, if =
you forget to do that you editor can be frozen. =46rom my point of view, =
I prefer automatic =
solution.</div></div></blockquote><div><br></div> Fixing =
"editor is frozen" isn't as strict as making the feature usable: it only =
has to be limited to allowing the user to close the file or open local =
properties to turn it off. One second of lag, even two is fine for =
that.</div><div><br><blockquote type=3D"cite"><div class=3D"gmail_quote">
<div>This solution is quite straightforward. But with this limitation, =
the user can be tricked because he see some highlighted occurrences but =
sometime (with slow computer or large file) all occurrences are =
not highlighted into the =
file.</div></div></blockquote><div><br></div> If the timer =
expires then all highlights should be =
removed.</div><div><br></div><div><blockquote type=3D"cite"><div =
class=3D"gmail_quote"><div><div>Do you think that is better to disable =
completely this feature?</div><div>For example, if the file is larger =
than 500KB, then highlight.current.word is =
disabled.</div></div></div></blockquote><div><br></div> I'd =
select 1 MB as a nice round number which would produce about a 250 ms =
lag for "style" in a file similar to src/Embedded.properties on my =
machine although it will be slower on an =
Atom.<br><div><br></div><blockquote type=3D"cite"><span =
style=3D"font-family: arial, sans-serif; font-size: 13px; white-space: =
nowrap; background-color: rgb(255, 255, 255); ">Although, to define this =
maximum size file for highlight current word,</span><div><span =
style=3D"font-family: arial, sans-serif; font-size: 13px; white-space: =
nowrap; background-color: rgb(255, 255, 255); ">maybe the property =
max.file.size can be used (</span><a =
href=3D"http://www.scintilla.org/SciTEDoc.html#property-max.file.size">htt=
p://www.scintilla.org/SciTEDoc.html#property-max.file.size</a>).</div><div=
></div></blockquote><div><br></div> That is tying two =
distinct features together.</div><div><br></div><div> =
Neil</div><div><br></div></body></html>=
--Boundary_(ID_KgeW/MhALr3YmhNtGoVOOA)--