Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Performance issue

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Performance issue


Chronological Thread 
  • From: Chris Marsh <>
  • To:
  • Subject: Re: [cgal-discuss] Performance issue
  • Date: Sat, 26 Sep 2020 11:33:36 -0600
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=usask.ca; dmarc=pass action=none header.from=usask.ca; dkim=pass header.d=usask.ca; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LNZ79V0LbgcegNMNmKL6zKACG2zTo6fF3PIe+v/I9lE=; b=hXkya3MFSDe8iVEF9SXa6SRUPu3jrXHStzpsPqo0MKS+jKOFQPZDl/sEN4L7EAEb4ylHG/sx9BflbogWIKVm2gP5ZBW8HEqH70/Yi0ShNaYgJqMrB21TBmKdOXEDjpEsRT8uRSWrIp1usajbIUorzIrYJGCqYQ+StkTS+Wo5Ezp+YMp6QcTDejHICDaHxzKYjJOKZEi5sU81/xCRl5ow0McJc95foPEe4TxKGa1OI0DnzzGu+JMxeo55+W7I54LFUkmYyxGWCuDX49GSNNoAyJJWwhbN+S/fyrh8YjNATngrC35/bUovVQtTQP7T1KJafLoVBJ1S13Vg3x55vNtP7A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=blEMU+JUSrRZc8blRu5ucdHJqUZ3ESb6MIdCIOqY4Q7r9ui5irtgK7RCO0AegLGqGWyZj5pqJAJT4byPfhQve7W3jCUDVNLUQSFTwT+g0Kpao33r5DfJzFMAZpLVCGUY9ycBZ43Z2AmW7rddSvlS6EfVb09xtXfjm7LX48gTNRhWbqxQJYHsVkB008G281FJFBQNv25y/whdZNnqkwHU+Q67Srk/53aob98dyflVMSNM4FTwqtlKMs2X0Uy6Cd5XQ4erctXE86ytg+sHG5hwJsQ7htiUGS6Af9O7b+Zch/U1We4DalN9ZLCcTcLluot/8I8Fzhqryzt9a/Beohty+Q==
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-phdr: 9a23:VFh4zBD7zm02sewKDvqiUyQJP3N1i/DPJgcQr6AfoPdwSP36o86wAkXT6L1XgUPTWs2DsrQY0rWQ6fqrCDZIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfLF/IA+ooQnPucUbhZVuIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1jioMKjw3/3zNisFogqJUohKvqRJ8zYDJfo+aKPVxfqLGcNwAWWZMRNxcWzBdDo6+aYYEEuoPPfxfr4n4v1YDsxu+BROtBOP01zRGgWX53bch0+QhDArL2xAvH9IUsHTVt9X5LqISXvqvzKnTzTXOdO5W2Szn54jTcRAtu+2DUqhpfMfX1EIgGB/LgE+Kpoz5IzOayP4Ns26D4ud8V++iiWAppg9trjavxMohl5XFi4wUx13a9ih13Jo5KNOkRENmbtOoDoZcuiGUOodoXs8sTG5ltSQnx7AGuZO2ejUBxpogxx7acfOHco6I7wrhVOmPPTd3n2hld6i+hxa06kis0PHzVs6x0FpSoSpKjN7MtnUT2BzP8MiGSvV98V291jaT0ADT8OFFLVoomqrcLp4t2r8wlpwJsUTCBCD6gkv2jLWQe045+eao8/zqb7r6qpOGKoN4lgPzPr4vl8G9G+g0LxYCU3WD9eiiyLHu+Vf1TbZKg/EsjKXVrZPXKd4bq6KlBQJez5wt5AylDzi81dQVhXkHI0xBeBKAl4XkJU3DLujkAfuimliiji5ly+3fMr3mGZrCMGLPkLD8fbZh8EFczxczzdZC6J5OErEBOvXzWlPvu9PEEh85Mgu0w+D9BNV6y4MeRWaPAqieMKPRq1OH+uUvI+yUaI8UvjbyNeQl6ubhgHMlg1MRYLWl0JkNZH25HPlqOViVbWTxjtsZFGcFpAs+TOjkiF2YVj5TYm6/UL485jEhCYKmFp3PRoW3j7ybxye7HoZbZn1dCl+WCnfodJ+IVOsWZy6KOM9ujiQEVaS9S48mzRyhqAD6xKBjLubN5yIYtInj28Ro5+3IjhE/7id0DsSY02GVVW54hGIIRzks3KB+u0Nx0FmD0bIry8FeDsFZsvNVTh8hZ9mb1P1/E9m0WwTbf97PRkzhWcSjGTh2T9Q/xJgFbE95XtmjlRvexDH5PrkOirarGJkwp6LAw2DqdYE60GfDzKBnjl88Q8IJO3fhnb967wGUBojHlAKSmK+uMKgdxyXQ73zQ8GyVoUtkXR5sBKXZQWgENAyRtsX8/kqETrm0CL1hPBEG0t+HMqINa9vnihJNS/7nfdjfeGmsgHzjORHdzbyFaM/men4WwT7GIEkCiQEau3icZiYkASL0iGLEDScmMFv1eEOkpeJ+snKgCEo91RqKR1B63qG2vBUc06/PA8gP164J7X9y4w5/G0ywioqPVoiw4jF5daAZWusTpVdK0WWF6F5WF7r4duVeoQdbdA56+UTzyx9wF4NM19Awq28nxxZzLqTe105dczSf3tb7PbiFczCjriDqULbf3xTl6PjT/64O7PoirFC65FO0DUM58DNs2osMiifO1tDxFAMXFKnJfAMv7REj/+PHeSAm5MXf3C80PA==

Hi Riccardo,
You may wish to submit a performance ticket to the CLion team with a snapsnot. I know they actively work on improving performance and my experience from when CLion first came out at the 2020.2 version has been that it gets faster and faster.

I have also found that cranking up the memory CLion is allowed to use increases the responsiveness of large code bases as it caches to disk less frequently.

Cheers
Chris

On Sat, Sep 26, 2020 at 10:47 AM Riccardo Mantini <> wrote:
CAUTION: External to USask. Verify sender and use caution with links and attachments. Forward suspicious emails to

Hi Dmitry,

thank you for your reply. I assumed that was the problem but I didn’t want to give up using Clion. I think I will take your advice and use VS code.

Cheers,
Riccardo Mantini

Il giorno 22 set 2020, alle ore 17:28, Dmitry Anisimov <> ha scritto:


Hi Riccardo,

Everything seems to be ok from what you explained. It is not a problem of CGAL but rather of CLion. The latter is very slow when resolving references from the highly templated C++ code like CGAL. When you click and search for a reference, CLion goes through all the CGAL classes and templates and tries to find what you search for. The time of this process depends on how big is your C++ code base. If you have a small one, CLion is efficient. But if you search in the huge code base like CGAL, you will experience performance issues like you do.

I had similar issues and stopped using CLion for that reason. As alternative for Linux and macOS, you can try to use Visual Studio Code, which is also free btw, but if you install their IntelliSense, it will be rather slow, too. But still faster than CLion.

Cheers,
Dmitry

-- 
Dmitry Anisimov, PhD
R&D Engineer
GeometryFactory - https://geometryfactory.com/

On 22 Sep 2020 at 17:02 +0200, Riccardo Mantini <>, wrote:

Hi everyone,

 

I have a performance issue using CGAL. I try to explain as best I can.

To develop a software based on CGAL I’m using my favourite IDE CLion by Jetbrains. I’m working on both Linux and MacOs but there is no diffence in behaviour. I installed CGAL via of APT on Linux and via Homebrew on Mac.

The problem is that Clion is very slow in resolving references, indexing, including headers, code completion and classes detection.

For example, the IDE takes too long to resolve references when I "ctrl + left click" on a line of code that refers to a CGAL function, to suggest some code or to highlight syntax errors.

 

I cannot understand if I did something wrong installing and setting CGAL or if there is an incompatibility with Clion.

Has anyone detected the same behavior? How can I solve it?

 

I attached a small capture of the problem.

 

Thank you.

 

Kind regards,

Riccardo


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss




Archive powered by MHonArc 2.6.19+.

Top of Page