Commit 321b6be
Avoid Rectangle allocation on every mouse move in CTabFolder
Replace item.getBounds().contains(x, y) calls in onMouse() with a
static containsPoint() helper that checks CTabItem fields directly,
avoiding Rectangle allocation on every MouseMove, MouseDown, and
MouseUp event.
See #3219
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 07605c9 commit 321b6be
File tree
1 file changed
+18
-11
lines changed- bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom
1 file changed
+18
-11
lines changedLines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
1810 | 1817 | | |
1811 | 1818 | | |
1812 | 1819 | | |
| |||
1874 | 1881 | | |
1875 | 1882 | | |
1876 | 1883 | | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
1880 | 1887 | | |
1881 | 1888 | | |
1882 | 1889 | | |
1883 | 1890 | | |
1884 | | - | |
1885 | | - | |
| 1891 | + | |
1886 | 1892 | | |
| 1893 | + | |
1887 | 1894 | | |
1888 | 1895 | | |
1889 | 1896 | | |
| |||
1917 | 1924 | | |
1918 | 1925 | | |
1919 | 1926 | | |
1920 | | - | |
| 1927 | + | |
1921 | 1928 | | |
1922 | 1929 | | |
1923 | 1930 | | |
| |||
1955 | 1962 | | |
1956 | 1963 | | |
1957 | 1964 | | |
1958 | | - | |
1959 | | - | |
1960 | | - | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
1961 | 1968 | | |
1962 | 1969 | | |
1963 | 1970 | | |
1964 | 1971 | | |
1965 | | - | |
1966 | | - | |
| 1972 | + | |
1967 | 1973 | | |
| 1974 | + | |
1968 | 1975 | | |
1969 | 1976 | | |
1970 | 1977 | | |
| |||
0 commit comments