Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fred Eisele
fql
Commits
578d5466
Commit
578d5466
authored
Sep 20, 2018
by
Ryan Wisnesky
Browse files
fixes a silly error and thereby improves chase performance dramatically
parent
ec0aeeb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/catdata/BinRelMap.java
View file @
578d5466
...
...
@@ -94,7 +94,7 @@ public class BinRelMap<X, Y> implements Iterable<Pair<X, Y>> {
}
public
BinRelMap
()
{
R
=
new
LinkedHashMap
<>(
1000000
);
R
=
new
LinkedHashMap
<>();
}
public
boolean
add
(
X
x
,
Y
y
)
{
...
...
src/catdata/aql/Chase.java
View file @
578d5466
...
...
@@ -351,13 +351,13 @@ public class Chase<Ty, En1, Sym, Fk1, Att1, En2, Fk2, Att2, Gen, Sk, X, Y> {
int
i
=
0
;
T
=
new
Content
(
I
);
// System.out.println(T);
// System.out.println(T
.sizes()
);
for
(;;)
{
boolean
changed
=
step
(
i
==
0
);
if
(!
changed
)
{
return
;
}
// System.out.println(T);
//
System.out.println(T
.sizes()
);
i
++;
}
...
...
src/catdata/aql/exp/InstExpJdbc.java
View file @
578d5466
...
...
@@ -64,6 +64,7 @@ public class InstExpJdbc extends InstExpImport<Connection, String> {
if
(
jdbcString
.
trim
().
isEmpty
())
{
toGet
=
(
String
)
op
.
getOrDefault
(
AqlOption
.
jdbc_default_string
);
}
//.driver.DriverManager.
return
DriverManager
.
getConnection
(
toGet
);
}
...
...
src/catdata/ide/CodeTextPanel.java
View file @
578d5466
...
...
@@ -32,6 +32,7 @@ public class CodeTextPanel extends JPanel {
public
void
setText
(
String
s
)
{
area
.
setText
(
s
);
area
.
setCaretPosition
(
0
);
System
.
out
.
println
(
s
.
substring
(
0
,
Integer
.
min
(
5
,
s
.
length
())));
}
public
String
getText
()
{
...
...
@@ -61,6 +62,7 @@ public class CodeTextPanel extends JPanel {
// area.setEditable(false);
UndoManager
m
=
new
UndoManager
();
m
.
setLimit
(
16
);
//since common case is lots of dots in bottom panels
// area.setundoManager = new UndoManager();
Document
doc
=
area
.
getDocument
();
doc
.
addUndoableEditListener
((
UndoableEditEvent
e
)
->
m
.
addEdit
(
e
.
getEdit
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment