Revision: 13479
          http://sourceforge.net/p/skim-app/code/13479
Author:   hofman
Date:     2023-06-15 21:21:26 +0000 (Thu, 15 Jun 2023)
Log Message:
-----------
reduce number of cached highlight views, we should need at most 10 anyway

Modified Paths:
--------------
    trunk/SKOverviewView.m

Modified: trunk/SKOverviewView.m
===================================================================
--- trunk/SKOverviewView.m      2023-06-15 16:19:48 UTC (rev 13478)
+++ trunk/SKOverviewView.m      2023-06-15 21:21:26 UTC (rev 13479)
@@ -127,7 +127,8 @@
 - (void)cacheView:(id)view {
     if (cachedViews == nil)
         cachedViews = [[NSMutableArray alloc] init];
-    [cachedViews addObject:view];
+    if ([cachedViews count] < 20)
+        [cachedViews addObject:view];
 }
 
 @end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to