Examples of optimize()


Examples of org.jnode.vm.compiler.ir.IRControlFlowGraph.optimize()

                BytecodeParser.parse(bytecode, irg);

                initMethodArguments(method, stackFrame, typeSizeInfo, irg);

                cfg.constructSSA();
                cfg.optimize();
                cfg.removeUnusedVars();
                cfg.deconstrucSSA();
                cfg.fixupAddresses();

                X86CodeGenerator x86cg = new X86CodeGenerator(method, (X86Assembler) os, bytecode.getLength(),
View Full Code Here

Examples of org.odftoolkit.odfdom.incubator.doc.office.OdfOfficeAutomaticStyles.optimize()

            }

            Assert.assertTrue(count == 2);

            // optimize should automatically remove one style:
            autoStyles.optimize();

            iter = autoStyles.getStylesForFamily(OdfStyleFamily.Paragraph).iterator();
            count = 0;
            while (iter.hasNext()) {
                iter.next();
View Full Code Here

Examples of org.openrdf.query.algebra.evaluation.util.QueryOptimizerList.optimize()

      optimizerList.add(new SameTermFilterOptimizer());
      optimizerList.add(new QueryModelPruner());
      optimizerList.add(new QueryJoinOptimizer(new MemEvaluationStatistics()));
      optimizerList.add(new FilterOptimizer());

      optimizerList.optimize(query, bindings);

      logger.trace("Optimized query model:\n{}", query);

      Cursor<BindingSet> iter;
      iter = strategy.evaluate(query, EmptyBindingSet.getInstance());
View Full Code Here

Examples of org.pdf4j.saxon.expr.ExpressionVisitor.optimize()

        Expression exp = ExpressionTool.make(expression, staticContext, 0, -1, 1, false);
        exp.setContainer(staticContext);
        ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
        visitor.setExecutable(getExecutable());
        exp = visitor.typeCheck(exp, Type.ITEM_TYPE);
        exp = visitor.optimize(exp, Type.ITEM_TYPE);
        SlotManager map = staticContext.getStackFrameMap();
        int numberOfExternalVariables = map.getNumberOfVariables();
        ExpressionTool.allocateSlots(exp, numberOfExternalVariables, map);
        XPathExpression xpe = new XPathExpression(this, exp);
        xpe.setStackFrameMap(map, numberOfExternalVariables);
View Full Code Here

Examples of org.renjin.compiler.pipeline.optimize.Optimizers.optimize()

    nodes.add(rootNode);
    nodeMap.put(root, rootNode);
    addChildren(this.rootNode);

    Optimizers optimizers = new Optimizers();
    optimizers.optimize(this);
    removeOrphans();
  }

  private int nextNodeId() {
    return nextNodeId++;
View Full Code Here

Examples of org.rssowl.core.persist.service.IModelSearch.optimize()

            Activator.safeLogInfo("Finished: Search Re-Indexing"); //$NON-NLS-1$
        }

        /* Optimize Index if Necessary */
        if (migrationResult.isOptimizeIndex() && !progressMonitor.isCanceled())
          modelSearch.optimize();
      }
    } finally {
      if (subMonitor != null) //If we perform the migration, the subMonitor is not null. Otherwise we don't show progress.
        progressMonitor.done();
    }
View Full Code Here

Examples of org.sonatype.nexus.index.context.IndexingContext.optimize()

            if ( ArtifactIndexingTask.Action.FINISH.equals( indexingTask.getAction() ) )
            {
                try
                {
                    context.optimize();

                    File managedRepository = new File( repository.getLocation() );
                    final File indexLocation = new File( managedRepository, ".index" );
                    IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
                    indexPacker.packIndex( request );
View Full Code Here

Examples of org.springmodules.lucene.index.core.DefaultLuceneIndexTemplate.optimize()

      Document document = new Document();
      document.add(new Field("id", "1", Field.Store.YES, Field.Index.UN_TOKENIZED));
      template.addDocument(document);
      template.addDocument(document);
      template.addDocument(document);
      template.optimize();
    } finally {
      resourceManager.releaseResources();
    }
  }
View Full Code Here

Examples of org.springmodules.lucene.index.factory.LuceneIndexWriter.optimize()

    listenerControl.setVoidCallable(1);

    listener.afterIndexingDirectory(getBaseDirectoryToIndex());
    listenerControl.setVoidCallable(1);

    indexWriter.optimize();
    indexWriterControl.setVoidCallable(1);
   
    indexWriter.close();
    indexWriterControl.setVoidCallable(1);
   
View Full Code Here

Examples of org.teiid.query.optimizer.BatchedUpdatePlanner.optimize()

    }
   
    BatchedUpdateCommand buc = new BatchedUpdateCommand(commands);
    buc.setVariableContexts(contexts);
    BatchedUpdatePlanner planner = new BatchedUpdatePlanner();
    this.processPlan = planner.optimize(buc, idGenerator, metadata, capabilitiesFinder, analysisRecord, context);
  }

  /**
   * @param params
   * @param values
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.